Back to index

openldap  2.4.31
Defines | Functions
midl.c File Reference

ldap bdb back-end ID List functions More...

#include <limits.h>
#include <string.h>
#include <stdlib.h>
#include <sys/types.h>
#include <assert.h>
#include "midl.h"

Go to the source code of this file.


#define CMP(x, y)   ( (x) < (y) ? -1 : (x) > (y) )
#define SMALL   8
#define SWAP(a, b)   { itmp=(a); (a)=(b); (b)=itmp; }


IDL mdb_midl_alloc ()
 Allocate an IDL.
void mdb_midl_free (IDL ids)
 Free an IDL.
int mdb_midl_shrink (IDL *idp)
 Shrink an IDL.
int mdb_midl_append (IDL *idp, ID id)
 Append an ID onto an IDL.
int mdb_midl_append_list (IDL *idp, IDL app)
 Append an IDL onto an IDL.
void mdb_midl_sort (IDL ids)
 Sort an IDL.
unsigned mdb_mid2l_search (ID2L ids, ID id)
 Search for an ID in an ID2L.
int mdb_mid2l_insert (ID2L ids, ID2 *id)
 Insert an ID2 into a ID2L.

Detailed Description

ldap bdb back-end ID List functions

Definition in file midl.c.