Declaration of the User structure and the associated support functions as used in the Mediator Pattern. More...

Go to the source code of this file.
Classes | |
| struct | User |
| Represents a user with a name. More... | |
Macros | |
| #define | __MEDIATOR_USER_H__ |
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. | |
Declaration of the User structure and the associated support functions as used in the Mediator Pattern.
Definition in file Mediator_User.h.
| #define __MEDIATOR_USER_H__ |
Definition at line 8 of file Mediator_User.h.
| 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().