Grassroots Infrastructure
The Grassroots Infrastructure is a suite of computing tools to help users and developers use scientific data infrastructure that can easily be interconnected.
|
A datatype to store user credentials. More...
#include <user_group.h>
Public Member Functions | |
GRASSROOTS_USERS_API UserGroup * | AllocateUserGroup (const char *name_s) |
Allocate a UserGroup with the given name. More... | |
GRASSROOTS_USERS_API void | FreeUserGroup (UserGroup *group_p) |
Free a UserGroup. More... | |
GRASSROOTS_USERS_API json_t * | GetUserGroupAsJSON (UserGroup *group_p, const bool full_user_flag) |
Get the json for a UserGroup. More... | |
GRASSROOTS_USERS_API UserGroup * | GetUserGroupFromJSON (const json_t *group_json_p) |
Get a UserGroup from a json representation. More... | |
GRASSROOTS_USERS_API bool | AddUserToGroup (UserGroup *group_p, User *user_p) |
Add a given User to a UserGroup. More... | |
GRASSROOTS_USERS_API bool | IsUserInGroup (const UserGroup *const group_p, const User *const user_p) |
Check whether a given User is a member of a UserGroup. More... | |
Data Fields | |
char * | ug_name_s |
LinkedList * | ug_users_p |
A datatype to store user credentials.
GRASSROOTS_USERS_API UserGroup * AllocateUserGroup | ( | const char * | name_s | ) |
GRASSROOTS_USERS_API void FreeUserGroup | ( | UserGroup * | group_p | ) |
GRASSROOTS_USERS_API json_t * GetUserGroupAsJSON | ( | UserGroup * | group_p, |
const bool | full_user_flag | ||
) |
GRASSROOTS_USERS_API UserGroup * GetUserGroupFromJSON | ( | const json_t * | group_json_p | ) |
GRASSROOTS_USERS_API bool AddUserToGroup | ( | UserGroup * | group_p, |
User * | user_p | ||
) |
GRASSROOTS_USERS_API bool IsUserInGroup | ( | const UserGroup *const | group_p, |
const User *const | user_p | ||
) |
char* ug_name_s |
LinkedList* ug_users_p |