X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=servers%2Fslapd%2Fslapi%2Fslapi.h;h=bb2dcd4217092711cf6982d2dc168ebdf118a2d5;hb=d2da9c1a7d1480eb6b8ae8c2a8e78392f44f4289;hp=6f0e87163df5a0d59794328cc4c02bf55efe3fbc;hpb=93540e339ae3fedf4dabc5fcdcc53c7e2de3ce63;p=openldap diff --git a/servers/slapd/slapi/slapi.h b/servers/slapd/slapi/slapi.h index 6f0e87163d..bb2dcd4217 100644 --- a/servers/slapd/slapi/slapi.h +++ b/servers/slapd/slapi/slapi.h @@ -1,7 +1,7 @@ /* $OpenLDAP$ */ /* This work is part of OpenLDAP Software . * - * Copyright 2002-2005 The OpenLDAP Foundation. + * Copyright 2002-2012 The OpenLDAP Foundation. * Portions Copyright 1997,2002-2003 IBM Corporation. * All rights reserved. * @@ -30,11 +30,11 @@ LDAP_BEGIN_DECL /* * Quick 'n' dirty to make struct slapi_* in slapi-plugin.h opaque */ -#define slapi_entry slap_entry -#define slapi_attr slap_attr +#define slapi_entry Entry +#define slapi_attr Attribute #define slapi_value berval #define slapi_valueset berval * -#define slapi_filter slap_filter +#define slapi_filter Filter LDAP_END_DECL @@ -45,7 +45,6 @@ LDAP_BEGIN_DECL #define SLAPI_OVERLAY_NAME "slapi" #define SLAPI_OPERATION_PBLOCK(_op) ((_op)->o_callback->sc_private) -#define SLAPI_CONNECTION_PBLOCK(_conn) ((_conn)->c_pb); #define SLAPI_BACKEND_PBLOCK(_be) ((_be)->be_pb) #define SLAPI_OPERATION_EXTENSIONS(_op) ((_op)->o_hdr->oh_extensions) @@ -88,6 +87,18 @@ typedef enum slapi_extension_e { SLAPI_X_EXT_MAX = 2 } slapi_extension_t; +struct slapi_dn { + unsigned char flag; + struct berval dn; + struct berval ndn; +}; + +struct slapi_rdn { + unsigned char flag; + struct berval bv; + LDAPRDN rdn; +}; + /* * Was: slapi_pblock.h */ @@ -106,17 +117,24 @@ typedef enum slapi_pblock_class_e { #define PBLOCK_ERROR (-1) #define PBLOCK_MAX_PARAMS 100 +union slapi_pblock_value { + int pv_integer; + long pv_long_integer; + void *pv_pointer; + int (*pv_function_pointer)(); +}; + struct slapi_pblock { - ldap_pvt_thread_mutex_t pblockMutex; - int numParams; - int curParams[PBLOCK_MAX_PARAMS]; - void *curVals[PBLOCK_MAX_PARAMS]; + ldap_pvt_thread_mutex_t pb_mutex; + int pb_nParams; + int pb_params[PBLOCK_MAX_PARAMS]; + union slapi_pblock_value pb_values[PBLOCK_MAX_PARAMS]; /* native types */ - Connection *pconn; - Operation *pop; - SlapReply rs; - int internal_op; - char textbuf[ SLAP_TEXT_BUFLEN ]; + Connection *pb_conn; + Operation *pb_op; + SlapReply *pb_rs; + int pb_intop; + char pb_textbuf[ SLAP_TEXT_BUFLEN ]; }; #endif /* !NO_PBLOCK_CLASS */