Update isolated channel consumers for owned bridge requests
This commit is contained in:
1 parent
abc2f8efb6
commit
8552cf8316
2 files changed
+5
No files matched your search
@@ -24,6 +24,10 @@ static QStringList deletedChannels;
|
||||
extern "C" int gui_bridge_is_uasync_ready(void) { return instance != nullptr; }
|
||||
extern "C" UTUN_INSTANCE* gui_bridge_get_inst(void) { return instance; }
|
||||
extern "C" void gui_bridge_post_uasync_fn(void (*fn)(void*), void* arg) { uasync_call_soon(instance->ua, arg, fn); }
|
||||
extern "C" int gui_bridge_post_uasync_owned_fn(void (*fn)(void*), void* arg) {
|
||||
if (!instance) return -1;
|
||||
uasync_call_soon(instance->ua, arg, fn); return 0;
|
||||
}
|
||||
static void coreEvent(UTUN_INSTANCE*, int type, const uint8_t* data, int length) {
|
||||
if (type == CHAT_EVT_GROUP_AVATAR_RESULT && GroupAvatarManager::instance()) GroupAvatarManager::instance()->onResult(data, length);
|
||||
if (type == CHAT_EVT_CHANNEL_DELETED && length > 1 && length == 1 + data[0])
|
||||
|
||||
@@ -42,6 +42,7 @@ static std::function<void(mf_transfer_request)> transferStarted;
|
||||
static std::function<void(mf_gui_request)> requestStarted;
|
||||
extern "C" int gui_bridge_is_uasync_ready(void) { return ready; }
|
||||
extern "C" UTUN_INSTANCE* gui_bridge_get_inst(void) { return nullptr; }
|
||||
extern "C" int gui_bridge_post_uasync_owned_fn(void (*)(void*), void*) { return -1; }
|
||||
extern "C" void gui_bridge_post_uasync_fn(void (*function)(void*), void* arg) {
|
||||
if (function == member_files_gui_request) {
|
||||
auto* request = (mf_gui_request*)arg;
|
||||
|
||||
Reference in new issue
Block a user