def _auth_revoked_apps_o_cb(user_data, result, app_exchange_info, app_exchange_info_len): safeUtils.checkResult(result, self.ffi_auth, user_data) self.queue.put('gotResult') if o_cb: o_cb(user_data, result, app_exchange_info, app_exchange_info_len)
def _encode_containers_resp_o_cb(user_data, result, response): log.debug( f"got {LOCAL_QUEUES[f'{str(id(self))}_encode_containers_resp_o_cb'].get_nowait()}" ) safeUtils.checkResult(result, self.ffi_auth, user_data) self.queue.put('gotResult') if o_cb: o_cb(user_data, result, response)
def _auth_flush_app_revocation_queue_o_cb(user_data, result): log.debug( f"got {LOCAL_QUEUES[f'{str(id(self))}_auth_flush_app_revocation_queue_o_cb'].get_nowait()}" ) safeUtils.checkResult(result, self.ffi_auth, user_data) self.queue.put('gotResult') if o_cb: o_cb(user_data, result)
def _auth_decode_ipc_msg_o_err(user_data, result, response): log.debug( f"got {LOCAL_QUEUES[f'{str(id(self))}_auth_decode_ipc_msg_o_err'].get_nowait()}" ) safeUtils.checkResult(result, self.ffi_auth, user_data) self.queue.put('gotResult') if o_err: o_err(user_data, result, response)
def _auth_exe_file_stem_o_cb(user_data, result, filename): log.debug( f"got {LOCAL_QUEUES[f'{str(id(self))}_auth_exe_file_stem_o_cb'].get_nowait()}" ) safeUtils.checkResult(result, self.ffi_auth, user_data) self.queue.put('gotResult') if o_cb: o_cb(user_data, result, filename)
def _create_acc_o_cb(user_data, result, authenticator): log.debug( f"got {LOCAL_QUEUES[f'{str(id(self))}_create_acc_o_cb'].get_nowait()}" ) safeUtils.checkResult(result, self.ffi_auth, user_data) self.queue.put('gotResult') if o_cb: o_cb(user_data, result, authenticator)
def _auth_output_log_path_o_cb(user_data, result, log_path): log.debug( f"got {LOCAL_QUEUES[f'{str(id(self))}_auth_output_log_path_o_cb'].get_nowait()}" ) safeUtils.checkResult(result, self.ffi_auth, user_data) self.queue.put('gotResult') if o_cb: o_cb(user_data, result, log_path)
def _auth_apps_accessing_mutable_data_o_cb(user_data, result, app_access, app_access_len): log.debug( f"got {LOCAL_QUEUES[f'{str(id(self))}_auth_apps_accessing_mutable_data_o_cb'].get_nowait()}" ) safeUtils.checkResult(result, self.ffi_auth, user_data) self.queue.put('gotResult') if o_cb: o_cb(user_data, result, app_access, app_access_len)
def _auth_revoked_apps_o_cb(user_data, result, app_exchange_info, app_exchange_info_len): log.debug( f"got {LOCAL_QUEUES[f'{str(id(self))}_auth_revoked_apps_o_cb'].get_nowait()}" ) safeUtils.checkResult(result, self.ffi_auth, user_data) self.queue.put('gotResult') if o_cb: o_cb(user_data, result, app_exchange_info, app_exchange_info_len)
def _login_o_cb(user_data, result, authenticaor): log.debug( f"got {LOCAL_QUEUES[f'{str(id(self))}_login_o_cb'].get_nowait()}" ) safeUtils.checkResult(result, self.ffi_auth, user_data) self.queue.put('gotResult') user_data = self if user_data == self.ffi_auth.NULL else self.ffi_auth.from_handle( user_data) if o_cb: o_cb(user_data, result, authenticaor ) # If user data is None, we should send self to the CB
def _auth_registered_apps_o_cb(user_data, result, registered_app, registered_app_len): log.debug( f"got {LOCAL_QUEUES[f'{str(id(self))}_auth_registered_apps_o_cb'].get_nowait()}" ) safeUtils.checkResult(result, self.ffi_auth, user_data) self.queue.put('gotResult') user_data = self if user_data == self.ffi_auth.NULL else self.ffi_auth.from_handle( user_data) if o_cb: o_cb(user_data, result, registered_app, registered_app_len)
def _auth_rm_revoked_app_o_cb(user_data ,result): safeUtils.checkResult(result, self.ffi_auth, user_data) self.queue.put('gotResult') if o_cb: o_cb(user_data ,result)
def _encode_containers_resp_o_cb(user_data ,result ,response): safeUtils.checkResult(result, self.ffi_auth, user_data) self.queue.put('gotResult') if o_cb: o_cb(user_data ,result ,response)
def _auth_flush_app_revocation_queue_o_cb(user_data ,result): safeUtils.checkResult(result, self.ffi_auth, user_data) self.queue.put('gotResult') if o_cb: o_cb(user_data ,result)
def _auth_init_logging_o_cb(user_data ,result): safeUtils.checkResult(result, self.ffi_auth, user_data) self.queue.put('gotResult') if o_cb: o_cb(user_data ,result)
def _auth_decode_ipc_msg_o_err(user_data ,result ,response): safeUtils.checkResult(result, self.ffi_auth, user_data) self.queue.put('gotResult') if o_err: o_err(user_data ,result ,response)
def _auth_set_additional_search_path_o_cb(user_data ,result): safeUtils.checkResult(result, self.ffi_auth, user_data) self.queue.put('gotResult') if o_cb: o_cb(user_data ,result)
def _auth_exe_file_stem_o_cb(user_data ,result ,filename): safeUtils.checkResult(result, self.ffi_auth, user_data) self.queue.put('gotResult') if o_cb: o_cb(user_data ,result ,filename)
def _auth_output_log_path_o_cb(user_data ,result ,log_path): safeUtils.checkResult(result, self.ffi_auth, user_data) self.queue.put('gotResult') if o_cb: o_cb(user_data ,result ,log_path)
def _auth_registered_apps_o_cb(user_data ,result ,registered_app ,registered_app_len): safeUtils.checkResult(result, self.ffi_auth, user_data) self.queue.put('gotResult') if o_cb: o_cb(user_data ,result ,registered_app ,registered_app_len)
def _auth_apps_accessing_mutable_data_o_cb(user_data ,result ,app_access ,app_access_len): safeUtils.checkResult(result, self.ffi_auth, user_data) self.queue.put('gotResult') if o_cb: o_cb(user_data ,result ,app_access ,app_access_len)
def _open_uri_o_cb(user_data, result): safeUtils.checkResult(result, self.ffi_sysUri, user_data) self.queue.put('gotResult') if o_cb: o_cb(user_data, result)
def _create_acc_o_cb(user_data ,result ,authenticator): safeUtils.checkResult(result, self.ffi_auth, user_data) self.queue.put('gotResult') if o_cb: o_cb(user_data ,result ,authenticator)
def _auth_account_info_o_cb(user_data ,result ,account_info): safeUtils.checkResult(result, self.ffi_auth, user_data) self.queue.put('gotResult') if o_cb: o_cb(user_data ,result ,account_info)