Choco OS  V.0.16.9.0
Join to the chocolate world
oc_user.h
Go to the documentation of this file.
1 
28 #ifndef INC_USER_OC_USER_H_
29 #define INC_USER_OC_USER_H_
30 
31 #include <stdbool.h>
32 #include <oc_stdlib.h>
33 
39 #define _________________________________________TYPES_SECTION______________________________________________________________________________
40 
43 typedef struct User_t * oC_User_t;
44 
45 typedef enum
46 {
47  oC_User_Permissions_Root = 0xFF ,
48 } oC_User_Permissions_t;
49 
50 #undef _________________________________________TYPES_SECTION______________________________________________________________________________
51 
53 extern oC_User_t oC_User_New ( Allocator_t Allocator , AllocationFlags_t Flags , const char * Name , const char * Password , oC_User_Permissions_t Permissions );
54 extern bool oC_User_Delete ( oC_User_t * User );
55 extern bool oC_User_IsCorrect ( oC_User_t User );
56 extern const char * oC_User_GetName ( oC_User_t User );
57 extern bool oC_User_Rename ( oC_User_t User , const char * NewName );
58 extern bool oC_User_CheckPassword ( oC_User_t User , const char * Password );
59 extern bool oC_User_CheckPermissions ( oC_User_t User , oC_User_Permissions_t Permissions );
60 extern oC_User_Permissions_t oC_User_GetPermissions ( oC_User_t User);
61 extern bool oC_User_ModifyPermissions( oC_User_t User , oC_User_Permissions_t Permissions );
62 extern bool oC_User_IsRoot ( oC_User_t User);
63 
64 #endif /* INC_USER_OC_USER_H_ */
identifier for allocations
Definition: oc_stdlib.h:159
Definition: oc_user.c:43
static const oC_Allocator_t Allocator
Definition: oc_eth.c:152