Add LDAP_BEGIN/END_DECL

This commit is contained in:
Kurt Zeilenga 2003-01-20 20:16:42 +00:00
parent dab6bdaaad
commit b3705e69f4
5 changed files with 25 additions and 0 deletions

View file

@ -15,11 +15,15 @@
#include <ibm_pblock_params.h> #include <ibm_pblock_params.h>
LDAP_BEGIN_DECL
typedef struct slapi_pblock Slapi_PBlock; typedef struct slapi_pblock Slapi_PBlock;
typedef struct slap_entry Slapi_Entry; typedef struct slap_entry Slapi_Entry;
typedef struct slap_attr Slapi_Attr; typedef struct slap_attr Slapi_Attr;
typedef Filter Slapi_Filter; typedef Filter Slapi_Filter;
LDAP_END_DECL
#include <slapi_utils.h> #include <slapi_utils.h>
#ifndef NO_PBLOCK_CLASS #ifndef NO_PBLOCK_CLASS
#include <slapi_pblock.h> #include <slapi_pblock.h>
@ -30,6 +34,8 @@ typedef Filter Slapi_Filter;
#include <slapi_cl.h> #include <slapi_cl.h>
#endif /* 0 */ #endif /* 0 */
LDAP_BEGIN_DECL
/* /*
* types of plugins * types of plugins
*/ */
@ -294,5 +300,7 @@ typedef Filter Slapi_Filter;
#define SLAPI_OPERATION_ANY 0xFFFFFFFFL #define SLAPI_OPERATION_ANY 0xFFFFFFFFL
#define SLAPI_OPERATION_NONE 0x00000000L #define SLAPI_OPERATION_NONE 0x00000000L
LDAP_END_DECL
#endif /* _SLAPI_H */ #endif /* _SLAPI_H */

View file

@ -13,6 +13,9 @@
#ifndef SLAPI_COMMON_H #ifndef SLAPI_COMMON_H
#define SLAPI_COMMON_H #define SLAPI_COMMON_H
LDAP_BEGIN_DECL
#ifndef TRUE #ifndef TRUE
#define TRUE 1 #define TRUE 1
#endif #endif
@ -35,5 +38,7 @@ typedef struct strlist {
struct strlist *next; struct strlist *next;
} StrList; } StrList;
LDAP_END_DECL
#endif /* SLAPI_COMMON_H */ #endif /* SLAPI_COMMON_H */

View file

@ -13,6 +13,8 @@
#ifndef SLAPI_OPS_H #ifndef SLAPI_OPS_H
#define SLAPI_OPS_H #define SLAPI_OPS_H
LDAP_BEGIN_DECL
Slapi_PBlock *slapi_search_internal( char *base, int scope, char *filter, Slapi_PBlock *slapi_search_internal( char *base, int scope, char *filter,
LDAPControl **controls, char **attrs, int attrsonly ); LDAPControl **controls, char **attrs, int attrsonly );
Slapi_PBlock *slapi_search_internal_bind( char *bindDN, char *base, Slapi_PBlock *slapi_search_internal_bind( char *bindDN, char *base,
@ -38,5 +40,7 @@ Slapi_PBlock *slapi_modrdn_internal( char * olddn, char * newrdn,
char **slapi_get_supported_extended_ops(void); char **slapi_get_supported_extended_ops(void);
int duplicateBVMod( LDAPMod *pMod, LDAPMod **ppNewMod ); int duplicateBVMod( LDAPMod *pMod, LDAPMod **ppNewMod );
LDAP_END_DECL
#endif /* SLAPI_OPS_H */ #endif /* SLAPI_OPS_H */

View file

@ -20,6 +20,8 @@
#define INVALID_PARAM PBLOCK_ERROR #define INVALID_PARAM PBLOCK_ERROR
#define MAX_PARAMS 100 #define MAX_PARAMS 100
LDAP_BEGIN_DECL
struct slapi_pblock { struct slapi_pblock {
ldap_pvt_thread_mutex_t pblockMutex; ldap_pvt_thread_mutex_t pblockMutex;
int ckParams; int ckParams;
@ -42,5 +44,7 @@ void slapi_pblock_clear(Slapi_PBlock *pb);
int slapi_x_pblock_get_first( Backend *be, Slapi_PBlock **pb ); int slapi_x_pblock_get_first( Backend *be, Slapi_PBlock **pb );
int slapi_x_pblock_get_next( Slapi_PBlock **pb ); int slapi_x_pblock_get_next( Slapi_PBlock **pb );
LDAP_END_DECL
#endif /* SLAPI_PBLOCK_H */ #endif /* SLAPI_PBLOCK_H */

View file

@ -13,6 +13,8 @@
#ifndef _SLAPI_UTILS_H #ifndef _SLAPI_UTILS_H
#define _SLAPI_UTILS_H #define _SLAPI_UTILS_H
LDAP_BEGIN_DECL
struct _Audit_record; struct _Audit_record;
typedef struct _Audit_record Audit_record; typedef struct _Audit_record Audit_record;
@ -118,5 +120,7 @@ extern ldap_pvt_thread_mutex_t slapi_printmessage_mutex;
extern char *slapi_log_file; extern char *slapi_log_file;
extern int slapi_log_level; extern int slapi_log_level;
LDAP_END_DECL
#endif /* _SLAPI_UTILS_H */ #endif /* _SLAPI_UTILS_H */