aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/ldapschema.h
diff options
context:
space:
mode:
authorDavid M. Syzdek <david@syzdek.net>2019-10-29 20:17:38 -0800
committerDavid M. Syzdek <david@syzdek.net>2019-10-29 20:17:38 -0800
commitaa560299182d9798cc2325613d3671b48915afaf (patch)
tree0fb1b5b57156e0702f5c5ec84a249a9f4d22fef0 /include/ldapschema.h
parent5625fe07cde0f57bc495a87eb2e21a26c3d2c0a5 (diff)
downloadldap-utils-aa560299182d9798cc2325613d3671b48915afaf.tar.gz
ldap-utils-aa560299182d9798cc2325613d3671b48915afaf.tar.bz2
ldap-utils-aa560299182d9798cc2325613d3671b48915afaf.tar.xz
ldap-utils-aa560299182d9798cc2325613d3671b48915afaf.zip
libldapschema: expanding lexer functions
Diffstat (limited to 'include/ldapschema.h')
-rw-r--r--include/ldapschema.h63
1 files changed, 46 insertions, 17 deletions
diff --git a/include/ldapschema.h b/include/ldapschema.h
index 69f1ad0..95347dd 100644
--- a/include/ldapschema.h
+++ b/include/ldapschema.h
@@ -200,12 +200,14 @@ struct ldap_schema_extension
200/// LDAP schema base data model 200/// LDAP schema base data model
201struct ldap_schema_model 201struct ldap_schema_model
202{ 202{
203 size_t size; ///< size of data struct 203 size_t size; ///< size of data struct
204 uint32_t type; ///< LDAP schema data type 204 uint32_t type; ///< LDAP schema data type
205 uint32_t flags; 205 uint32_t flags;
206 char * definition; ///< defintion of object 206 char * definition; ///< defintion of object
207 char * oid; ///< oid of object 207 char * oid; ///< oid of object
208 char * desc; ///< description of object; 208 char * desc; ///< description of object;
209 char ** defargs;
210 size_t defargs_len;
209 LDAPSchemaExtension ** extensions; 211 LDAPSchemaExtension ** extensions;
210 size_t extensions_len; 212 size_t extensions_len;
211}; 213};
@@ -246,18 +248,12 @@ struct ldap_schema_attributetype
246{ 248{
247 LDAPSchemaModel model; 249 LDAPSchemaModel model;
248 LDAPSchemaSyntax * syntax; 250 LDAPSchemaSyntax * syntax;
249 uint64_t flags; 251 uint64_t usage;
250 int usage;
251 int pad0;
252 //uint8_t obsolete;
253 //uint8_t single;
254 //uint8_t collective;
255 //uint8_t no_user_mod;
256 //uint8_t is_objectclass;
257 size_t names_len; 252 size_t names_len;
258 size_t allowed_by_len; 253 size_t allowed_by_len;
259 size_t required_by_len; 254 size_t required_by_len;
260 uintmax_t min_upper; 255 uint64_t min_upper;
256 char * sup_name;
261 char ** names; 257 char ** names;
262 LDAPSchemaObjectclass ** allowed_by; 258 LDAPSchemaObjectclass ** allowed_by;
263 LDAPSchemaObjectclass ** required_by; 259 LDAPSchemaObjectclass ** required_by;
@@ -319,11 +315,11 @@ ldapschema_parse_syntax(
319#pragma mark memory functions 315#pragma mark memory functions
320 316
321_LDAPSCHEMA_F int 317_LDAPSCHEMA_F int
322ldap_count_values( 318ldapschema_count_values(
323 char ** vals ); 319 char ** vals );
324 320
325_LDAPSCHEMA_F int 321_LDAPSCHEMA_F int
326ldap_count_values_len( 322ldapschema_count_values_len(
327 struct berval ** vals ); 323 struct berval ** vals );
328 324
329_LDAPSCHEMA_F void 325_LDAPSCHEMA_F void
@@ -343,6 +339,39 @@ ldapschema_value_free_len(
343 struct berval ** vals ); 339 struct berval ** vals );
344 340
345 341
342//------------------//
343// output functions //
344//------------------//
345#pragma mark output functions
346
347_LDAPSCHEMA_F void
348ldapschema_print_attributetype(
349 LDAPSchema * lsd,
350 LDAPSchemaAttributeType * attr );
351
352_LDAPSCHEMA_F void
353ldapschema_print_attributetypes(
354 LDAPSchema * lsd );
355
356_LDAPSCHEMA_F void
357ldapschema_print_model(
358 LDAPSchema * lsd,
359 LDAPSchemaModel * model );
360
361_LDAPSCHEMA_F void
362ldapschema_print_models(
363 LDAPSchema * lsd );
364
365_LDAPSCHEMA_F void
366ldapschema_print_syntax(
367 LDAPSchema * lsd,
368 LDAPSchemaSyntax * syntax );
369
370_LDAPSCHEMA_F void
371ldapschema_print_syntaxes(
372 LDAPSchema * lsd );
373
374
346//----------------// 375//----------------//
347// sort functions // 376// sort functions //
348//----------------// 377//----------------//