Implementation of the User support functions as used in the Mediator Pattern. More...
#include <stdlib.h>
#include <string.h>
#include <memory.h>
#include "helpers/strdup.h"
#include "Mediator_User.h"
Go to the source code of this file.
Functions | |
User * | User_Create (const char *userName) |
Create a User object with the specified name. | |
void | User_Destroy (User *user) |
Destroy the given User object, releasing any associated memory resources. After this function returns, the pointer to the User object is no longer valid. | |
Implementation of the User support functions as used in the Mediator Pattern.
Definition in file Mediator_User.c.
User * User_Create | ( | const char * | userName | ) |
Create a User object with the specified name.
userName | Name of the user |
Definition at line 17 of file Mediator_User.c.
References User::Name, and STRDUP.
Referenced by Users_AddUser().
void User_Destroy | ( | User * | user | ) |
Destroy the given User object, releasing any associated memory resources. After this function returns, the pointer to the User object is no longer valid.
user | The User object to destroy. |
Definition at line 41 of file Mediator_User.c.
References User::Name.
Referenced by UserList_Clear(), and UserList_RemoveUser().