8 #ifndef LOGGER_ERROR_H_
9 #define LOGGER_ERROR_H_
19 static inline void mt_error_unknown_team(
const p_packet_t *payload,
28 static inline void mt_error_unknown_channel(
const p_packet_t *payload,
37 static inline void mt_error_unknown_thread(
const p_packet_t *payload,
46 static inline void mt_error_unknown_user(
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_error_unknown_thread(char const *thread_uuid)
Must be called when the user try to do an action with a thread that does not exist (list replies,...
int client_error_unknown_user(char const *user_uuid)
Must be called when the user try to do an action with a user that does not exist (send private messag...
int client_error_unauthorized(void)
Must be called when the user try to do an action he is not allowed to perform. Ex: create a thread in...
int client_error_already_exist(void)
Must be called when the user try to do an action and the resource already exist. Ex: create a team wi...
int client_error_unknown_channel(char const *channel_uuid)
Must be called when the user try to do an action with a channel that does not exist (list threads,...
int client_error_unknown_team(char const *team_uuid)
Must be called when the user try to do an action with a team that does not exist (list channels,...
Represents a packet with type and data.
Definition: protocol.h:31
uint8_t data[DATA_SIZE]
Definition: protocol.h:33
Definition: events_structures.h:82
char uuid[UUID_LENGTH]
Definition: events_structures.h:83
#define UNUSED
Definition: unused.h:12