aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDavid M. Syzdek <david@syzdek.net>2019-11-26 19:28:01 -0900
committerDavid M. Syzdek <david@syzdek.net>2019-11-26 19:28:01 -0900
commitd16c0e2109a2bb3859e55bd3f63156eec0cb7d09 (patch)
tree3053575529f77a73dc469cd843ab4b6f062d2a45
parentf1bb5fa05ea48a2350b5d0bee995e5d7697a252e (diff)
downloadldap-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.c2
-rw-r--r--lib/libldapschema/libldapschema.h45
-rw-r--r--lib/libldapschema/lmemory.h44
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
224void
225ldapschema_attributetype_free(
226 LDAPSchemaAttributeType * attr );
227
228void
229ldapschema_ext_free(
230 LDAPSchemaExtension * ext );
231
232LDAPSchemaExtension *
233ldapschema_ext_initialize(
234 LDAPSchema * lsd,
235 const char * name );
236
237int
238ldapschema_insert(
239 LDAPSchema * lsd,
240 void *** listp,
241 size_t * lenp,
242 void * obj,
243 int (*compar)(const void *, const void *) );
244
245void
246ldapschema_model_free(
247 LDAPSchemaModel * model );
248
249void
250ldapschema_object_free(
251 LDAPSchemaModel * model );
252
253void
254ldapschema_syntax_free(
255 LDAPSchemaSyntax * syntax );
256
257void *
258ldapschema_oid(
259 LDAPSchema * lsd,
260 const char * oid,
261 uint32_t type );
262
263char **
264ldapschema_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
72void
73ldapschema_attributetype_free(
74 LDAPSchemaAttributeType * attr );
75
72LDAPSchemaCur 76LDAPSchemaCur
73ldapschema_curalloc( 77ldapschema_curalloc(
74 LDAPSchema * lsd ); 78 LDAPSchema * lsd );
75 79
76void 80void
81ldapschema_ext_free(
82 LDAPSchemaExtension * ext );
83
84LDAPSchemaExtension *
85ldapschema_ext_initialize(
86 LDAPSchema * lsd,
87 const char * name );
88
89int
90ldapschema_insert(
91 LDAPSchema * lsd,
92 void *** listp,
93 size_t * lenp,
94 void * obj,
95 int (*compar)(const void *, const void *) );
96
97void
77ldapschema_matchingrule_free( 98ldapschema_matchingrule_free(
78 LDAPSchemaMatchingRule * rule); 99 LDAPSchemaMatchingRule * rule);
79 100
101void
102ldapschema_model_free(
103 LDAPSchemaModel * model );
104
80LDAPSchemaModel * 105LDAPSchemaModel *
81ldapschema_model_initialize( 106ldapschema_model_initialize(
82 LDAPSchema * lsd, 107 LDAPSchema * lsd,
@@ -90,12 +115,31 @@ ldapschema_model_register(
90 LDAPSchemaModel * mod ); 115 LDAPSchemaModel * mod );
91 116
92void 117void
118ldapschema_object_free(
119 LDAPSchemaModel * model );
120
121void
93ldapschema_objectclass_free( 122ldapschema_objectclass_free(
94 LDAPSchemaObjectclass * objectclass ); 123 LDAPSchemaObjectclass * objectclass );
95 124
125void *
126ldapschema_oid(
127 LDAPSchema * lsd,
128 const char * oid,
129 uint32_t type );
130
131void
132ldapschema_syntax_free(
133 LDAPSchemaSyntax * syntax );
134
96char ** 135char **
97ldapschema_value_dup( 136ldapschema_value_dup(
98 char ** vals ); 137 char ** vals );
99 138
139char **
140ldapschema_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 */