18 if (groupName != NULL)
20 group = calloc(1,
sizeof(
Group));
23 group->
Name = groupName;
49 if (group != NULL && userName != NULL)
64 if (group != NULL && userName != NULL)
89 bool usersGathered =
true;
91 if (group != NULL && users != NULL)
93 for (
size_t index = 0; index < group->
Users.strings_count; index++)
97 usersGathered =
false;
103 return usersGathered;
std::vector< std::string > StringList
Typedef for a vector of std::string.
void StringList_Clear(StringList *stringList)
Clear the specified string list. All strings in the list are released. The string list can then be us...
int StringList_Find(StringList *stringList, const char *string)
Search the given string list for the given string. If found, return the index of the found string.
void StringList_Initialize(StringList *stringList)
Initialize the given string list.
void StringList_Remove(StringList *stringList, int removeIndex)
Remove the specified string from the given string list.
bool StringList_AddString(StringList *stringList, const char *string)
Add a string to the given string list.
Represents a single group. A group has a name and zero or more users. Users are tracked by name.
StringList Users
The list of users in this group.
const char * Name
Name of this group.