 |
C-chat
|
Go to the documentation of this file.
35 void ui_getUserInput(
const char* prompt,
char* buffer,
int buffer_size);
void ui_joinMessage(const char *username)
Displays a join message to the client.
Definition: ui.c:193
void ui_init()
Initialize required resources for UI.
Definition: ui.c:92
void ui_getUserInput(const char *prompt, char *buffer, int buffer_size)
Get the entered message by the user.
Definition: ui.c:109
void ui_reset()
Reset UI state.
Definition: ui.c:100
void ui_informationMessage(const char *message)
Displays an information message to client.
Definition: ui.c:181
void ui_welcomeMessage()
Displays welcome message to the client.
Definition: ui.c:229
void ui_messageReceived(const char *sender, const char *message)
Displays the given message from the given sender to the user.
Definition: ui.c:147
void ui_leaveMessage(const char *username)
Displays a leave message to the client.
Definition: ui.c:211
void ui_successMessage(const char *message)
Displays a success message to the client.
Definition: ui.c:189
void ui_cleanUp()
Free allocated resources for UI.
Definition: ui.c:96
void ui_usernameChanged(const char *oldUsername, const char *newUsername)
Tells the client an user changed its username.
Definition: ui.c:253
void ui_errorMessage(const char *message)
Displays an error message to the client.
Definition: ui.c:185