#include <ac/string.h>
#include "back-bdb.h"
-#include "external.h"
int
bdb_add(Operation *op, SlapReply *rs )
#include <ac/unistd.h>
#include "back-bdb.h"
-#include "external.h"
int
bdb_bind( Operation *op, SlapReply *rs )
#include <ac/string.h>
#include "back-bdb.h"
-#include "external.h"
int
bdb_compare( Operation *op, SlapReply *rs )
#include <ac/string.h>
#include "back-bdb.h"
-#include "external.h"
#ifdef DB_DIRTY_READ
# define SLAP_BDB_ALLOW_DIRTY_READ
#include "lutil.h"
#include "back-bdb.h"
-#include "external.h"
int
bdb_csn_commit(
#include <ac/string.h>
#include "back-bdb.h"
-#include "external.h"
int
bdb_delete( Operation *op, SlapReply *rs )
#include <ac/string.h>
#include "back-bdb.h"
-#include "external.h"
#include "lber_pvt.h"
static struct exop {
#ifndef _BDB_EXTERNAL_H
#define _BDB_EXTERNAL_H
-LDAP_BEGIN_DECL
-
-#ifndef BDB_SYMBOL
-#ifdef BDB_HIER
-#define BDB_SYMBOL(x) LDAP_CONCAT(hdb_,x)
-#else
-#define BDB_SYMBOL(x) LDAP_CONCAT(bdb_,x)
-#endif
-#endif
-
-#define bdb_initialize BDB_SYMBOL(initialize)
-#define bdb_db_config BDB_SYMBOL(db_config)
-#define bdb_add BDB_SYMBOL(add)
-#define bdb_bind BDB_SYMBOL(bind)
-#define bdb_compare BDB_SYMBOL(compare)
-#define bdb_delete BDB_SYMBOL(delete)
-#define bdb_modify BDB_SYMBOL(modify)
-#define bdb_modrdn BDB_SYMBOL(modrdn)
-#define bdb_search BDB_SYMBOL(search)
-#define bdb_extended BDB_SYMBOL(extended)
-#define bdb_referrals BDB_SYMBOL(referrals)
-#define bdb_operational BDB_SYMBOL(operational)
-#define bdb_hasSubordinates BDB_SYMBOL(hasSubordinates)
-#define bdb_tool_entry_open BDB_SYMBOL(tool_entry_open)
-#define bdb_tool_entry_close BDB_SYMBOL(tool_entry_close)
-#define bdb_tool_entry_next BDB_SYMBOL(tool_entry_next)
-#define bdb_tool_entry_get BDB_SYMBOL(tool_entry_get)
-#define bdb_tool_entry_put BDB_SYMBOL(tool_entry_put)
-#define bdb_tool_entry_reindex BDB_SYMBOL(tool_entry_reindex)
-#define bdb_tool_dn2id_get BDB_SYMBOL(tool_dn2id_get)
-#define bdb_tool_id2entry_get BDB_SYMBOL(tool_id2entry_get)
-#define bdb_tool_entry_modify BDB_SYMBOL(tool_entry_modify)
-
-extern BI_init bdb_initialize;
-
-extern BI_db_config bdb_db_config;
-
-extern BI_op_add bdb_add;
-
-extern BI_op_bind bdb_bind;
+#ifndef _PROTO_BDB_H
+#error "\"proto-bdb.h\" must be included first"
+#endif /* _PROTO_BDB_H */
-extern BI_op_compare bdb_compare;
+/*
-extern BI_op_delete bdb_delete;
+#include "proto-bdb.h"
-extern BI_op_modify bdb_modify;
-
-extern BI_op_modrdn bdb_modrdn;
-
-extern BI_op_search bdb_search;
-
-extern BI_op_extended bdb_extended;
-
-extern BI_chk_referrals bdb_referrals;
+ * must be included first
+ */
-extern BI_operational bdb_operational;
+LDAP_BEGIN_DECL
-extern BI_has_subordinates bdb_hasSubordinates;
+#define bdb_back_initialize BDB_SYMBOL(back_initialize)
-/* tools.c */
-extern BI_tool_entry_open bdb_tool_entry_open;
-extern BI_tool_entry_close bdb_tool_entry_close;
-extern BI_tool_entry_next bdb_tool_entry_next;
-extern BI_tool_entry_get bdb_tool_entry_get;
-extern BI_tool_entry_put bdb_tool_entry_put;
-extern BI_tool_entry_reindex bdb_tool_entry_reindex;
-extern BI_tool_dn2id_get bdb_tool_dn2id_get;
-extern BI_tool_id2entry_get bdb_tool_id2entry_get;
-extern BI_tool_entry_modify bdb_tool_entry_modify;
+extern BI_init bdb_back_initialize;
LDAP_END_DECL
#include <ac/string.h>
#include "back-bdb.h"
-#include "external.h"
static int bdb_id2entry_put(
BackendDB *be,
#else
bi.bi_type = "bdb";
#endif
- bi.bi_init = bdb_initialize;
+ bi.bi_init = bdb_back_initialize;
backend_add( &bi );
return 0;
#endif /* SLAPD_BDB */
int
-bdb_initialize(
+bdb_back_initialize(
BackendInfo *bi )
{
static char *controls[] = {
};
/* initialize the underlying database system */
- Debug( LDAP_DEBUG_TRACE, "bdb_initialize: initialize BDB backend\n",
+ Debug( LDAP_DEBUG_TRACE, "bdb_back_initialize: initialize BDB backend\n",
0, 0, 0 );
bi->bi_flags |=
if( ver < DB_VERSION_FULL )
{
Debug( LDAP_DEBUG_ANY,
- "bdb_initialize: BDB library version mismatch:"
+ "bdb_back_initialize: BDB library version mismatch:"
" expected " DB_VERSION_STRING ","
" got %s\n", version, 0, 0 );
}
- Debug( LDAP_DEBUG_ANY, "bdb_initialize: %s\n",
+ Debug( LDAP_DEBUG_ANY, "bdb_back_initialize: %s\n",
version, 0, 0 );
}
#include <ac/time.h>
#include "back-bdb.h"
-#include "external.h"
static struct berval scbva[] = {
BER_BVC("glue"),
#include <ac/string.h>
#include "back-bdb.h"
-#include "external.h"
int
bdb_modrdn( Operation *op, SlapReply *rs )
#include "slap.h"
#include "back-bdb.h"
-#include "external.h"
/*
* sets *hasSubordinates to LDAP_COMPARE_TRUE/LDAP_COMPARE_FALSE
void
bdb_trans_backoff( int num_retries );
+/*
+ * former external.h
+ */
+
+#ifndef BDB_SYMBOL
+#ifdef BDB_HIER
+#define BDB_SYMBOL(x) LDAP_CONCAT(hdb_,x)
+#else
+#define BDB_SYMBOL(x) LDAP_CONCAT(bdb_,x)
+#endif
+#endif
+
+#define bdb_db_config BDB_SYMBOL(db_config)
+#define bdb_add BDB_SYMBOL(add)
+#define bdb_bind BDB_SYMBOL(bind)
+#define bdb_compare BDB_SYMBOL(compare)
+#define bdb_delete BDB_SYMBOL(delete)
+#define bdb_modify BDB_SYMBOL(modify)
+#define bdb_modrdn BDB_SYMBOL(modrdn)
+#define bdb_search BDB_SYMBOL(search)
+#define bdb_extended BDB_SYMBOL(extended)
+#define bdb_referrals BDB_SYMBOL(referrals)
+#define bdb_operational BDB_SYMBOL(operational)
+#define bdb_hasSubordinates BDB_SYMBOL(hasSubordinates)
+#define bdb_tool_entry_open BDB_SYMBOL(tool_entry_open)
+#define bdb_tool_entry_close BDB_SYMBOL(tool_entry_close)
+#define bdb_tool_entry_next BDB_SYMBOL(tool_entry_next)
+#define bdb_tool_entry_get BDB_SYMBOL(tool_entry_get)
+#define bdb_tool_entry_put BDB_SYMBOL(tool_entry_put)
+#define bdb_tool_entry_reindex BDB_SYMBOL(tool_entry_reindex)
+#define bdb_tool_dn2id_get BDB_SYMBOL(tool_dn2id_get)
+#define bdb_tool_id2entry_get BDB_SYMBOL(tool_id2entry_get)
+#define bdb_tool_entry_modify BDB_SYMBOL(tool_entry_modify)
+
+extern BI_db_config bdb_db_config;
+
+extern BI_op_add bdb_add;
+extern BI_op_bind bdb_bind;
+extern BI_op_compare bdb_compare;
+extern BI_op_delete bdb_delete;
+extern BI_op_modify bdb_modify;
+extern BI_op_modrdn bdb_modrdn;
+extern BI_op_search bdb_search;
+extern BI_op_extended bdb_extended;
+
+extern BI_chk_referrals bdb_referrals;
+
+extern BI_operational bdb_operational;
+
+extern BI_has_subordinates bdb_hasSubordinates;
+
+/* tools.c */
+extern BI_tool_entry_open bdb_tool_entry_open;
+extern BI_tool_entry_close bdb_tool_entry_close;
+extern BI_tool_entry_next bdb_tool_entry_next;
+extern BI_tool_entry_get bdb_tool_entry_get;
+extern BI_tool_entry_put bdb_tool_entry_put;
+extern BI_tool_entry_reindex bdb_tool_entry_reindex;
+extern BI_tool_dn2id_get bdb_tool_dn2id_get;
+extern BI_tool_id2entry_get bdb_tool_id2entry_get;
+extern BI_tool_entry_modify bdb_tool_entry_modify;
+
LDAP_END_DECL
#endif /* _PROTO_BDB_H */
#include <ac/string.h>
#include "back-bdb.h"
-#include "external.h"
int
bdb_referrals( Operation *op, SlapReply *rs )
#include "back-bdb.h"
#include "idl.h"
-#include "external.h"
static int base_candidate(
BackendDB *be,
#define AVL_INTERNAL
#include "back-bdb.h"
-#include "external.h"
static DBC *cursor = NULL;
static DBT key, data;
#include <ac/string.h>
#include "back-bdb.h"
-#include "external.h"
#include "lber_pvt.h"
#include "lutil.h"
#include <ac/string.h>
#include "slap.h"
-#include "external.h"
+#include "proto-dnssrv.h"
int
dnssrv_back_bind(
#include <ac/socket.h>
#include "slap.h"
-#include "back-dnssrv.h"
+#include "proto-dnssrv.h"
int
dnssrv_back_compare(
#include <ac/socket.h>
#include "slap.h"
-#include "external.h"
+#include "proto-dnssrv.h"
int
dnssrv_back_db_config(
LDAP_BEGIN_DECL
-extern BI_init dnssrv_back_initialize;
-extern BI_open dnssrv_back_open;
-extern BI_close dnssrv_back_close;
-extern BI_destroy dnssrv_back_destroy;
-
-extern BI_db_init dnssrv_back_db_init;
-extern BI_db_destroy dnssrv_back_db_destroy;
-
-extern BI_db_config dnssrv_back_db_config;
-
-extern BI_op_bind dnssrv_back_bind;
-
-extern BI_op_search dnssrv_back_search;
-
-extern BI_op_compare dnssrv_back_compare;
-
-extern BI_chk_referrals dnssrv_back_referrals;
+extern BI_init dnssrv_back_initialize;
LDAP_END_DECL
#include <ac/socket.h>
#include "slap.h"
+#include "proto-dnssrv.h"
#include "external.h"
#if SLAPD_DNSSRV == SLAPD_MOD_DYNAMIC
--- /dev/null
+/* $OpenLDAP$ */
+/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
+ *
+ * Copyright 2000-2004 The OpenLDAP Foundation.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted only as authorized by the OpenLDAP
+ * Public License.
+ *
+ * A copy of this license is available in the file LICENSE in the
+ * top-level directory of the distribution or, alternatively, at
+ * <http://www.OpenLDAP.org/license.html>.
+ */
+/* ACKNOWLEDGEMENTS:
+ * This work was originally developed by Kurt D. Zeilenga for inclusion
+ * in OpenLDAP Software.
+ */
+
+#ifndef PROTO_DNSSRV_H
+#define PROTO_DNSSRV_H
+
+LDAP_BEGIN_DECL
+
+extern BI_open dnssrv_back_open;
+extern BI_close dnssrv_back_close;
+extern BI_destroy dnssrv_back_destroy;
+
+extern BI_db_init dnssrv_back_db_init;
+extern BI_db_destroy dnssrv_back_db_destroy;
+extern BI_db_config dnssrv_back_db_config;
+
+extern BI_op_bind dnssrv_back_bind;
+extern BI_op_search dnssrv_back_search;
+extern BI_op_compare dnssrv_back_compare;
+
+extern BI_chk_referrals dnssrv_back_referrals;
+
+LDAP_END_DECL
+
+#endif /* PROTO_DNSSRV_H */
#include <ac/socket.h>
#include "slap.h"
-#include "external.h"
+#include "proto-dnssrv.h"
int
dnssrv_back_referrals(
#include <ac/time.h>
#include "slap.h"
-#include "external.h"
+#include "proto-dnssrv.h"
int
dnssrv_back_search(