19 static inline void mt_subscribe(
const p_packet_t *payload,
31 static inline void mt_unsubscribe(
const p_packet_t *payload,
43 static inline void mt_channel(
const p_packet_t *payload,
56 static inline void mt_thread(
const p_packet_t *payload,
71 static inline void mt_reply(
const p_packet_t *payload,
int client(int ac, char **av)
main function for the client is only used by main (is returned by the main function)
Definition: client.c:176
int client_print_channel_created(char const *channel_uuid, char const *channel_name, char const *channel_description)
Must be called when you create channel successfully.
int client_print_thread_created(char const *thread_uuid, char const *user_uuid, time_t thread_timestamp, char const *thread_title, char const *thread_body)
Must be called when you create a thread successfully.
int client_print_unsubscribed(char const *user_uuid, char const *team_uuid)
Must be called when you unsubscribe from a team successfully.
int client_print_reply_created(char const *thread_uuid, char const *user_uuid, time_t reply_timestamp, char const *reply_body)
Must be called when you create a reply successfully.
int client_print_subscribed(char const *user_uuid, char const *team_uuid)
Must be called when you subscribe to a team successfully.
Definition: events_structures.h:126
char description[MAX_DESCRIPTION_LENGTH]
Definition: events_structures.h:130
char name[MAX_NAME_LENGTH]
Definition: events_structures.h:129
char uuid[UUID_LENGTH]
Definition: events_structures.h:127
Represents a packet with type and data.
Definition: protocol.h:31
uint8_t data[DATA_SIZE]
Definition: protocol.h:33
Definition: events_structures.h:168
char body[MAX_BODY_LENGTH]
Definition: events_structures.h:171
time_t timestamp
Definition: events_structures.h:172
char user_uuid[UUID_LENGTH]
Definition: events_structures.h:169
char thread_uuid[UUID_LENGTH]
Definition: events_structures.h:170
Definition: events_structures.h:64
char user_uuid[UUID_LENGTH]
Definition: events_structures.h:65
char team_uuid[UUID_LENGTH]
Definition: events_structures.h:66
Definition: events_structures.h:147
time_t timestamp
Definition: events_structures.h:153
char user_uuid[UUID_LENGTH]
Definition: events_structures.h:149
char body[MAX_BODY_LENGTH]
Definition: events_structures.h:152
char title[MAX_NAME_LENGTH]
Definition: events_structures.h:151
char uuid[UUID_LENGTH]
Definition: events_structures.h:148
#define UNUSED
Definition: unused.h:12