diff options
Diffstat (limited to 'testing/experiment/group_chats.h')
-rw-r--r-- | testing/experiment/group_chats.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/testing/experiment/group_chats.h b/testing/experiment/group_chats.h index 42ea3e08..3330ce10 100644 --- a/testing/experiment/group_chats.h +++ b/testing/experiment/group_chats.h | |||
@@ -33,9 +33,11 @@ extern "C" { | |||
33 | 33 | ||
34 | typedef struct { | 34 | typedef struct { |
35 | uint8_t client_id[crypto_box_PUBLICKEYBYTES]; | 35 | uint8_t client_id[crypto_box_PUBLICKEYBYTES]; |
36 | uint64_t last_recv; | ||
37 | uint64_t pingid; | 36 | uint64_t pingid; |
38 | uint64_t last_pinged; | 37 | uint64_t last_pinged; |
38 | |||
39 | uint64_t last_recv; | ||
40 | uint64_t last_recv_msgping; | ||
39 | uint32_t last_message_number; | 41 | uint32_t last_message_number; |
40 | } Group_Peer; | 42 | } Group_Peer; |
41 | 43 | ||
@@ -78,6 +80,14 @@ void callback_groupmessage(Group_Chat *chat, void (*function)(Group_Chat *chat, | |||
78 | */ | 80 | */ |
79 | uint32_t group_sendmessage(Group_Chat *chat, uint8_t *message, uint32_t length); | 81 | uint32_t group_sendmessage(Group_Chat *chat, uint8_t *message, uint32_t length); |
80 | 82 | ||
83 | |||
84 | /* | ||
85 | * Tell everyone about a new peer (a person we are inviting for example.) | ||
86 | * | ||
87 | */ | ||
88 | uint32_t group_newpeer(Group_Chat *chat, uint8_t *client_id); | ||
89 | |||
90 | |||
81 | /* Create a new group chat. | 91 | /* Create a new group chat. |
82 | * | 92 | * |
83 | * Returns a new group chat instance if success. | 93 | * Returns a new group chat instance if success. |