Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036 #ifndef HEADER_GACL_H
00037 #define HEADER_GACL_H
00038
00039 #ifdef __cplusplus
00040 extern "C" {
00041 #endif
00042
00043 #ifndef GACL_LIB_VERSION
00044 #define GACL_LIB_VERSION "x.x.x"
00045 #endif
00046
00047 typedef GRSTgaclCred GACLcred;
00048
00049 typedef int GACLaction;
00050 typedef unsigned int GACLperm;
00051
00052 typedef GRSTgaclEntry GACLentry;
00053
00054 typedef GRSTgaclAcl GACLacl;
00055
00056 typedef GRSTgaclUser GACLuser;
00057
00058 extern char *gacl_perm_syms[];
00059 extern GACLperm gacl_perm_vals[];
00060
00061 #define GACL_PERM_NONE GRST_PERM_NONE
00062 #define GACL_PERM_READ GRST_PERM_READ
00063 #define GACL_PERM_LIST GRST_PERM_LIST
00064 #define GACL_PERM_WRITE GRST_PERM_WRITE
00065 #define GACL_PERM_ADMIN GRST_PERM_ADMIN
00066
00067 #define GACLhasNone(perm) (perm == 0)
00068 #define GACLhasRead(perm) ((perm & GRST_PERM_READ) != 0)
00069 #define GACLhasList(perm) ((perm & GRST_PERM_LIST) != 0)
00070 #define GACLhasWrite(perm) ((perm & GRST_PERM_WRITE) != 0)
00071 #define GACLhasAdmin(perm) ((perm & GRST_PERM_ADMIN) != 0)
00072
00073 #define GACL_ACTION_ALLOW GRST_ACTION_ALLOW
00074 #define GACL_ACTION_DENY GRST_ACTION_DENY
00075
00076 #define GACL_ACL_FILE GRST_ACL_FILE
00077 #define GACL_DN_LISTS GRST_DN_LISTS
00078
00079 #define GACLinit() GRSTgaclInit()
00080
00081 #define GACLnewCred(x) GRSTgaclCredNew((x))
00082
00083
00084 #define GACLaddToCred(x,y,z) GRSTgaclCredAddValue((x),(y),(z))
00085
00086
00087 #define GACLfreeCred(x) GRSTgaclCredFree((x))
00088
00089
00090 #define GACLaddCred(x,y) GRSTgaclEntryAddCred((x),(y))
00091
00092
00093 #define GACLdelCred(x,y) GRSTgaclEntryDelCred((x),(y))
00094
00095
00096 #define GACLprintCred(x,y) GRSTgaclCredPrint((x),(y))
00097
00098
00099
00100 #define GACLnewEntry() GRSTgaclEntryNew()
00101
00102
00103 #define GACLfreeEntry(x) GRSTgaclEntryFree((x))
00104
00105
00106 #define GACLaddEntry(x,y) GRSTgaclAclAddEntry((x),(y))
00107
00108
00109 #define GACLprintEntry(x,y) GRSTgaclEntryPrint((x),(y))
00110
00111
00112
00113 #define GACLprintPerm(x,y) GRSTgaclPermPrint((x),(y))
00114
00115
00116 #define GACLallowPerm(x,y) GRSTgaclEntryAllowPerm((x),(y))
00117
00118
00119 #define GACLunallowPerm(x,y) GRSTgaclEntryUnallowPerm((x),(y))
00120
00121
00122 #define GACLdenyPerm(x,y) GRSTgaclEntryDenyPerm((x),(y))
00123
00124
00125 #define GACLundenyPerm(x,y) GRSTgaclEntryUndenyPerm((x),(y))
00126
00127
00128 #define GACLpermToChar(x) GRSTgaclPermToChar((x))
00129
00130
00131 #define GACLcharToPerm(x) GRSTgaclPermFromChar((x))
00132
00133
00134 #define GACLnewAcl() GRSTgaclAclNew()
00135
00136
00137 #define GACLfreeAcl(x) GRSTgaclAclFree((x))
00138
00139
00140 #define GACLprintAcl(x,y) GRSTgaclAclPrint((x),(y))
00141
00142
00143 #define GACLsaveAcl(x,y) GRSTgaclAclSave((y),(x))
00144
00145
00146 #define GACLloadAcl(x) GRSTgaclAclLoadFile((x))
00147
00148
00149 #define GACLfindAclForFile(x) GRSTgaclFileFindAclname((x))
00150
00151
00152 #define GACLloadAclForFile(x) GRSTgaclAclLoadforFile((x))
00153
00154
00155 #define GACLisAclFile(x) GRSTgaclFileIsAcl((x))
00156
00157
00158
00159 #define GACLnewUser(x) GRSTgaclUserNew((x))
00160
00161
00162 #define GACLfreeUser(x) GRSTgaclUserFree((x))
00163
00164
00165 #define GACLuserAddCred(x,y) GRSTgaclUserAddCred((x),(y))
00166
00167
00168 #define GACLuserHasCred(x,y) GRSTgaclUserHasCred((x),(y))
00169
00170
00171 #define GACLuserFindCredType(x,y) GRSTgaclUserFindCredtype((x),(y))
00172
00173
00174 #define GACLtestDnList(x,y) GRSTgaclDNlistHasUser((x),(y))
00175
00176
00177 #define GACLtestUserAcl(x,y) GRSTgaclAclTestUser((x),(y))
00178
00179
00180 #define GACLtestExclAcl(x,y) GRSTgaclAclTestexclUser((x),(y))
00181
00182
00183
00184 #define GACLurlEncode(x) GRSThttpUrlEncode((x))
00185
00186
00187 #define GACLmildUrlEncode(x) GRSThttpUrlMildencode((x))
00188
00189
00190 GRSTgaclEntry *GACLparseEntry(void *cur);
00191
00192 #ifdef __cplusplus
00193 }
00194 #endif
00195
00196 #endif // HEADER_GACL_H