|
|
|
|
@ -19,7 +19,7 @@ struct UTUN_INSTANCE;
|
|
|
|
|
|
|
|
|
|
/* ── Типы уведомлений uasync→GUI (fire-and-forget) ── */ |
|
|
|
|
|
|
|
|
|
#define GUI_EVT_MSG_RECEIVED 1 /* data: [ch_id_len:1][ch_id:var][author_node_id:8] */ |
|
|
|
|
#define GUI_EVT_MSG_RECEIVED 1 /* data: [ch_id_len:1][ch_id:var][author_node_id:8][initial_sync:1] */ |
|
|
|
|
#define GUI_EVT_CONNECT_RESULT 2 /* data: [node_id:8][result:4][channel_id:8] */ |
|
|
|
|
#define GUI_EVT_NEW_PEER 3 /* data: [node_id:8] */ |
|
|
|
|
#define GUI_EVT_CHANNEL_UPDATED 4 /* data: [ch_id_len:1][ch_id:var] */ |
|
|
|
|
@ -93,7 +93,7 @@ typedef void (*gui_connect_result_fn)(uint64_t node_id, uint64_t channel_id, int
|
|
|
|
|
void gui_bridge_set_connect_result_cb(gui_connect_result_fn cb); |
|
|
|
|
|
|
|
|
|
/* Callback для входящих сообщений (вызывается из GUI-потока) */ |
|
|
|
|
typedef void (*gui_msg_received_fn)(const char* ch_id, int ch_id_len, uint64_t author); |
|
|
|
|
typedef void (*gui_msg_received_fn)(const char* ch_id, int ch_id_len, uint64_t author, int initial_sync); |
|
|
|
|
void gui_bridge_set_msg_received_cb(gui_msg_received_fn cb); |
|
|
|
|
|
|
|
|
|
/* Callback для обновления канала (вызывается из GUI-потока) */ |
|
|
|
|
|