diff options
| author | David M. Syzdek <david@syzdek.net> | 2019-11-26 19:28:01 -0900 |
|---|---|---|
| committer | David M. Syzdek <david@syzdek.net> | 2019-11-26 19:28:01 -0900 |
| commit | d16c0e2109a2bb3859e55bd3f63156eec0cb7d09 (patch) | |
| tree | 3053575529f77a73dc469cd843ab4b6f062d2a45 | |
| parent | f1bb5fa05ea48a2350b5d0bee995e5d7697a252e (diff) | |
| download | ldap-utils-d16c0e2109a2bb3859e55bd3f63156eec0cb7d09.tar.gz ldap-utils-d16c0e2109a2bb3859e55bd3f63156eec0cb7d09.tar.bz2 ldap-utils-d16c0e2109a2bb3859e55bd3f63156eec0cb7d09.tar.xz ldap-utils-d16c0e2109a2bb3859e55bd3f63156eec0cb7d09.zip | |
libldapschema: moving prototypes for internal memory functions to lmemory.h
| -rw-r--r-- | lib/libldapschema/lerror.c | 2 | ||||
| -rw-r--r-- | lib/libldapschema/libldapschema.h | 45 | ||||
| -rw-r--r-- | lib/libldapschema/lmemory.h | 44 |
3 files changed, 46 insertions, 45 deletions
diff --git a/lib/libldapschema/lerror.c b/lib/libldapschema/lerror.c index 0e93acf..0cef955 100644 --- a/lib/libldapschema/lerror.c +++ b/lib/libldapschema/lerror.c | |||
| @@ -50,6 +50,8 @@ | |||
| 50 | #include <strings.h> | 50 | #include <strings.h> |
| 51 | #include <stdlib.h> | 51 | #include <stdlib.h> |
| 52 | 52 | ||
| 53 | #include "lmemory.h" | ||
| 54 | |||
| 53 | 55 | ||
| 54 | ///////////////// | 56 | ///////////////// |
| 55 | // // | 57 | // // |
diff --git a/lib/libldapschema/libldapschema.h b/lib/libldapschema/libldapschema.h index ec47bbb..657ac12 100644 --- a/lib/libldapschema/libldapschema.h +++ b/lib/libldapschema/libldapschema.h | |||
| @@ -221,50 +221,5 @@ struct ldap_schema_matchingrule | |||
| 221 | //-------=----------// | 221 | //-------=----------// |
| 222 | #pragma mark memory functions | 222 | #pragma mark memory functions |
| 223 | 223 | ||
| 224 | void | ||
| 225 | ldapschema_attributetype_free( | ||
| 226 | LDAPSchemaAttributeType * attr ); | ||
| 227 | |||
| 228 | void | ||
| 229 | ldapschema_ext_free( | ||
| 230 | LDAPSchemaExtension * ext ); | ||
| 231 | |||
| 232 | LDAPSchemaExtension * | ||
| 233 | ldapschema_ext_initialize( | ||
| 234 | LDAPSchema * lsd, | ||
| 235 | const char * name ); | ||
| 236 | |||
| 237 | int | ||
| 238 | ldapschema_insert( | ||
| 239 | LDAPSchema * lsd, | ||
| 240 | void *** listp, | ||
| 241 | size_t * lenp, | ||
| 242 | void * obj, | ||
| 243 | int (*compar)(const void *, const void *) ); | ||
| 244 | |||
| 245 | void | ||
| 246 | ldapschema_model_free( | ||
| 247 | LDAPSchemaModel * model ); | ||
| 248 | |||
| 249 | void | ||
| 250 | ldapschema_object_free( | ||
| 251 | LDAPSchemaModel * model ); | ||
| 252 | |||
| 253 | void | ||
| 254 | ldapschema_syntax_free( | ||
| 255 | LDAPSchemaSyntax * syntax ); | ||
| 256 | |||
| 257 | void * | ||
| 258 | ldapschema_oid( | ||
| 259 | LDAPSchema * lsd, | ||
| 260 | const char * oid, | ||
| 261 | uint32_t type ); | ||
| 262 | |||
| 263 | char ** | ||
| 264 | ldapschema_value_add( | ||
| 265 | char ** vals, | ||
| 266 | const char * val, | ||
| 267 | int * countp ); | ||
| 268 | |||
| 269 | 224 | ||
| 270 | #endif /* end of header file */ | 225 | #endif /* end of header file */ |
diff --git a/lib/libldapschema/lmemory.h b/lib/libldapschema/lmemory.h index bacc476..3994747 100644 --- a/lib/libldapschema/lmemory.h +++ b/lib/libldapschema/lmemory.h | |||
| @@ -69,14 +69,39 @@ ldapschema_append( | |||
| 69 | size_t * lenp, | 69 | size_t * lenp, |
| 70 | void * obj ); | 70 | void * obj ); |
| 71 | 71 | ||
| 72 | void | ||
| 73 | ldapschema_attributetype_free( | ||
| 74 | LDAPSchemaAttributeType * attr ); | ||
| 75 | |||
| 72 | LDAPSchemaCur | 76 | LDAPSchemaCur |
| 73 | ldapschema_curalloc( | 77 | ldapschema_curalloc( |
| 74 | LDAPSchema * lsd ); | 78 | LDAPSchema * lsd ); |
| 75 | 79 | ||
| 76 | void | 80 | void |
| 81 | ldapschema_ext_free( | ||
| 82 | LDAPSchemaExtension * ext ); | ||
| 83 | |||
| 84 | LDAPSchemaExtension * | ||
| 85 | ldapschema_ext_initialize( | ||
| 86 | LDAPSchema * lsd, | ||
| 87 | const char * name ); | ||
| 88 | |||
| 89 | int | ||
| 90 | ldapschema_insert( | ||
| 91 | LDAPSchema * lsd, | ||
| 92 | void *** listp, | ||
| 93 | size_t * lenp, | ||
| 94 | void * obj, | ||
| 95 | int (*compar)(const void *, const void *) ); | ||
| 96 | |||
| 97 | void | ||
| 77 | ldapschema_matchingrule_free( | 98 | ldapschema_matchingrule_free( |
| 78 | LDAPSchemaMatchingRule * rule); | 99 | LDAPSchemaMatchingRule * rule); |
| 79 | 100 | ||
| 101 | void | ||
| 102 | ldapschema_model_free( | ||
| 103 | LDAPSchemaModel * model ); | ||
| 104 | |||
| 80 | LDAPSchemaModel * | 105 | LDAPSchemaModel * |
| 81 | ldapschema_model_initialize( | 106 | ldapschema_model_initialize( |
| 82 | LDAPSchema * lsd, | 107 | LDAPSchema * lsd, |
| @@ -90,12 +115,31 @@ ldapschema_model_register( | |||
| 90 | LDAPSchemaModel * mod ); | 115 | LDAPSchemaModel * mod ); |
| 91 | 116 | ||
| 92 | void | 117 | void |
| 118 | ldapschema_object_free( | ||
| 119 | LDAPSchemaModel * model ); | ||
| 120 | |||
| 121 | void | ||
| 93 | ldapschema_objectclass_free( | 122 | ldapschema_objectclass_free( |
| 94 | LDAPSchemaObjectclass * objectclass ); | 123 | LDAPSchemaObjectclass * objectclass ); |
| 95 | 124 | ||
| 125 | void * | ||
| 126 | ldapschema_oid( | ||
| 127 | LDAPSchema * lsd, | ||
| 128 | const char * oid, | ||
| 129 | uint32_t type ); | ||
| 130 | |||
| 131 | void | ||
| 132 | ldapschema_syntax_free( | ||
| 133 | LDAPSchemaSyntax * syntax ); | ||
| 134 | |||
| 96 | char ** | 135 | char ** |
| 97 | ldapschema_value_dup( | 136 | ldapschema_value_dup( |
| 98 | char ** vals ); | 137 | char ** vals ); |
| 99 | 138 | ||
| 139 | char ** | ||
| 140 | ldapschema_value_add( | ||
| 141 | char ** vals, | ||
| 142 | const char * val, | ||
| 143 | int * countp ); | ||
| 100 | 144 | ||
| 101 | #endif /* end of header file */ | 145 | #endif /* end of header file */ |
