Skip to content
Snippets Groups Projects
Commit b3705e69 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Add LDAP_BEGIN/END_DECL

parent dab6bdaa
No related branches found
No related tags found
No related merge requests found
......@@ -15,11 +15,15 @@
#include <ibm_pblock_params.h>
LDAP_BEGIN_DECL
typedef struct slapi_pblock Slapi_PBlock;
typedef struct slap_entry Slapi_Entry;
typedef struct slap_attr Slapi_Attr;
typedef Filter Slapi_Filter;
LDAP_END_DECL
#include <slapi_utils.h>
#ifndef NO_PBLOCK_CLASS
#include <slapi_pblock.h>
......@@ -30,6 +34,8 @@ typedef Filter Slapi_Filter;
#include <slapi_cl.h>
#endif /* 0 */
LDAP_BEGIN_DECL
/*
* types of plugins
*/
......@@ -294,5 +300,7 @@ typedef Filter Slapi_Filter;
#define SLAPI_OPERATION_ANY 0xFFFFFFFFL
#define SLAPI_OPERATION_NONE 0x00000000L
LDAP_END_DECL
#endif /* _SLAPI_H */
......@@ -13,6 +13,9 @@
#ifndef SLAPI_COMMON_H
#define SLAPI_COMMON_H
LDAP_BEGIN_DECL
#ifndef TRUE
#define TRUE 1
#endif
......@@ -35,5 +38,7 @@ typedef struct strlist {
struct strlist *next;
} StrList;
LDAP_END_DECL
#endif /* SLAPI_COMMON_H */
......@@ -13,6 +13,8 @@
#ifndef SLAPI_OPS_H
#define SLAPI_OPS_H
LDAP_BEGIN_DECL
Slapi_PBlock *slapi_search_internal( char *base, int scope, char *filter,
LDAPControl **controls, char **attrs, int attrsonly );
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);
int duplicateBVMod( LDAPMod *pMod, LDAPMod **ppNewMod );
LDAP_END_DECL
#endif /* SLAPI_OPS_H */
......@@ -20,6 +20,8 @@
#define INVALID_PARAM PBLOCK_ERROR
#define MAX_PARAMS 100
LDAP_BEGIN_DECL
struct slapi_pblock {
ldap_pvt_thread_mutex_t pblockMutex;
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_next( Slapi_PBlock **pb );
LDAP_END_DECL
#endif /* SLAPI_PBLOCK_H */
......@@ -13,6 +13,8 @@
#ifndef _SLAPI_UTILS_H
#define _SLAPI_UTILS_H
LDAP_BEGIN_DECL
struct _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 int slapi_log_level;
LDAP_END_DECL
#endif /* _SLAPI_UTILS_H */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment