diff options
author | irungentoo <irungentoo@gmail.com> | 2013-09-05 17:00:41 -0400 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2013-09-05 17:00:41 -0400 |
commit | cc8a536cb07484396354c4880f3631666a1cf874 (patch) | |
tree | 708f598799ebef55e2b3f261b96472b7099e99e8 /testing/experiment/group_chats.h | |
parent | c59975dd7ecdabe864f341b699f986e5e474acb6 (diff) |
Base of group chats seems to be working now.
Diffstat (limited to 'testing/experiment/group_chats.h')
-rw-r--r-- | testing/experiment/group_chats.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/testing/experiment/group_chats.h b/testing/experiment/group_chats.h index 527610d8..42ea3e08 100644 --- a/testing/experiment/group_chats.h +++ b/testing/experiment/group_chats.h | |||
@@ -76,7 +76,7 @@ void callback_groupmessage(Group_Chat *chat, void (*function)(Group_Chat *chat, | |||
76 | * Send a message to the group. | 76 | * Send a message to the group. |
77 | * | 77 | * |
78 | */ | 78 | */ |
79 | uint32_t m_sendmessage(Group_Chat *chat, uint8_t *message, uint32_t length); | 79 | uint32_t group_sendmessage(Group_Chat *chat, uint8_t *message, uint32_t length); |
80 | 80 | ||
81 | /* Create a new group chat. | 81 | /* Create a new group chat. |
82 | * | 82 | * |
@@ -93,6 +93,10 @@ Group_Chat *new_groupchat(Networking_Core *net); | |||
93 | */ | 93 | */ |
94 | void kill_groupchat(Group_Chat *chat); | 94 | void kill_groupchat(Group_Chat *chat); |
95 | 95 | ||
96 | /* | ||
97 | * This is the main loop. | ||
98 | */ | ||
99 | void do_groupchat(Group_Chat *chat); | ||
96 | 100 | ||
97 | /* if we receive a group chat packet we call this function so it can be handled. | 101 | /* if we receive a group chat packet we call this function so it can be handled. |
98 | return 0 if packet is handled correctly. | 102 | return 0 if packet is handled correctly. |
@@ -100,7 +104,7 @@ void kill_groupchat(Group_Chat *chat); | |||
100 | int handle_groupchatpacket(Group_Chat *chat, IP_Port source, uint8_t *packet, uint32_t length); | 104 | int handle_groupchatpacket(Group_Chat *chat, IP_Port source, uint8_t *packet, uint32_t length); |
101 | 105 | ||
102 | 106 | ||
103 | void chat_bootstrap(Group_Chat *chat, IP_Port ip_port, int peernum); | 107 | void chat_bootstrap(Group_Chat *chat, IP_Port ip_port, uint8_t *client_id); |
104 | 108 | ||
105 | #ifdef __cplusplus | 109 | #ifdef __cplusplus |
106 | } | 110 | } |