1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-12-07 13:46:35 +01:00

Port to new group API

This commit is contained in:
Jfreegman
2015-07-13 22:12:13 -04:00
30 changed files with 1679 additions and 667 deletions

View File

@@ -59,28 +59,26 @@ struct GAudio {
#endif /* AUDIO */
typedef struct {
uint32_t groupnumber;
int chatwin;
bool active;
uint8_t type;
int num_peers;
bool is_connected;
int side_pos; /* current position of the sidebar - used for scrolling up and down */
uint64_t start_time;
uint32_t num_peers;
uint8_t *peer_names;
uint8_t *oldpeer_names;
uint16_t *peer_name_lengths;
uint16_t *oldpeer_name_lengths;
#ifdef AUDIO
struct GAudio audio;
#endif
} GroupChat;
void close_groupchat(ToxWindow *self, Tox *m, int groupnum);
int init_groupchat_win(ToxWindow *prompt, Tox *m, int groupnum, uint8_t type);
void close_groupchat(ToxWindow *self, Tox *m, uint32_t groupnum);
int init_groupchat_win(Tox *m, uint32_t groupnum, const char *groupname, size_t length);
void set_nick_all_groups(Tox *m, const char *nick, size_t length);
void set_status_all_groups(Tox *m, uint8_t status);
int group_get_nick_peernumber(uint32_t groupnum, const char *nick);
/* destroys and re-creates groupchat window with or without the peerlist */
void redraw_groupchat_win(ToxWindow *self);
ToxWindow new_group_chat(Tox *m, int groupnum);
#endif /* #define GROUPCHAT_H */