Define asynchronous conversation snapshots for PM clients
This commit is contained in:
1 parent
7fee3ec551
commit
e562896d63
2 files changed
+3
No files matched your search
@@ -65,6 +65,7 @@ extern "C" {
|
||||
#define CHAT_EVT_CALL_PATH 42 /* [call_id:8][text:var] — BGP-маршрут до пира звонка */
|
||||
#define CHAT_EVT_RADIO_TALK 43 /* [group_id:8][src_node_id:8][stream_id:2][on:1] — кто-то начал/закончил говорить */
|
||||
#define CHAT_EVT_CALL_CONNECTION 44 /* [call_id:8][CONN_TYPE:1][next_hop_node_id:8] — текущий путь отправки звонка */
|
||||
#define CHAT_EVT_DM_CONVERSATIONS 45 /* [JSON:utf8] — последние 200 личных бесед */
|
||||
|
||||
typedef void (*chat_event_handler_fn)(struct UTUN_INSTANCE* inst, int type, const uint8_t* data, int len);
|
||||
|
||||
|
||||
@@ -120,6 +120,8 @@ struct dm_messages_req {
|
||||
char conv_id[64];
|
||||
};
|
||||
void dm_messages_trampoline(void* arg);
|
||||
struct dm_conversations_req { struct UTUN_INSTANCE* inst; };
|
||||
void dm_conversations_trampoline(void* arg);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user