external.h   [plain text]


/*
 * Copyright (c) 2000-2002 Apple Computer, Inc. All rights reserved.
 *
 * @APPLE_LICENSE_HEADER_START@
 * 
 * "Portions Copyright (c) 1999 Apple Computer, Inc.  All Rights
 * Reserved.  This file contains Original Code and/or Modifications of
 * Original Code as defined in and that are subject to the Apple Public
 * Source License Version 1.0 (the 'License').  You may not use this file
 * except in compliance with the License.  Please obtain a copy of the
 * License at http://www.apple.com/publicsource and read it before using
 * this file.
 * 
 * The Original Code and all software distributed under the License are
 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT.  Please see the
 * License for the specific language governing rights and limitations
 * under the License."
 * 
 * @APPLE_LICENSE_HEADER_END@
 */

#ifndef _NETINFO_EXTERNAL_H
#define _NETINFO_EXTERNAL_H

LDAP_BEGIN_DECL

extern int netinfo_back_initialize LDAP_P(( BackendInfo *bi ));
extern int netinfo_back_open LDAP_P(( BackendInfo *bi ));
extern int netinfo_back_close LDAP_P(( BackendInfo *bi ));
extern int netinfo_back_destroy LDAP_P(( BackendInfo *bi ));

extern int netinfo_back_db_init LDAP_P(( BackendDB *bd ));
extern int netinfo_back_db_open LDAP_P(( BackendDB *bd ));
extern int netinfo_back_db_close LDAP_P(( BackendDB *bd ));
extern int netinfo_back_db_destroy LDAP_P(( BackendDB *bd ));

extern int netinfo_back_db_config LDAP_P(( BackendDB *bd,
	const char *fname, int lineno, int argc, char **argv ));

extern int netinfo_back_bind LDAP_P(( BackendDB *bd,
	Connection *conn, Operation *op,
	struct berval *dn, struct berval *ndn, int method,
	struct berval *cred, struct berval *edn ));

extern int netinfo_back_conn_destroy LDAP_P(( BackendDB *bd,
	Connection *conn ));

extern int netinfo_back_referrals LDAP_P(( BackendDB *bd,
	Connection *conn, Operation *op, struct berval *dn,
	struct berval *ndn, const char **text ));

extern int netinfo_back_search LDAP_P(( BackendDB *bd,
	Connection *conn, Operation *op,
	struct berval *base, struct berval *nbase,
	int scope, int deref, int sizelimit, int timelimit,
	Filter *filter, struct berval *filterstr,
	AttributeName *attrs, int attrsonly ));

extern int netinfo_back_compare LDAP_P(( BackendDB *bd,
	Connection *conn, Operation *op,
	struct berval *dn, struct berval *ndn,
	AttributeAssertion *ava ));

extern int netinfo_back_modify LDAP_P(( BackendDB *bd,
	Connection *conn, Operation *op,
	struct berval *dn, struct berval *ndn, Modifications *ml ));

extern int netinfo_back_modrdn LDAP_P(( BackendDB *bd,
	Connection *conn, Operation *op,
	struct berval *dn, struct berval *ndn,
	struct berval *newrdn, struct berval *nnewrdn, int deleteoldrdn,
	struct berval *newSuperior, struct berval *nnewSuperior ));

extern int netinfo_back_add LDAP_P(( BackendDB *bd,
	Connection *conn, Operation *op, Entry *e ));

extern int netinfo_back_delete LDAP_P(( BackendDB *bd,
	Connection *conn, Operation *op,
	struct berval *dn, struct berval *ndn ));

extern int netinfo_back_abandon LDAP_P(( BackendDB *bd,
	Connection *conn, Operation *op, int msgid ));

extern int netinfo_back_exop_passwd LDAP_P((
	BackendDB *be,
	Connection *conn,
	Operation *op,
	const char *reqoid,
	struct berval *reqdata,
	char **rspoid,
	struct berval **rspdata,
	LDAPControl ***rspctrls,
	const char **text,
	BerVarray *refs));

extern int netinfo_back_extended LDAP_P((
	BackendDB *be,
	Connection *conn,
	Operation *op,
	const char *reqoid,
	struct berval *reqdata,
	char **respoid,
	struct berval **rspdata,
	LDAPControl ***rspctrls,
	const char **text,
	BerVarray *refs));

extern int netinfo_back_attribute LDAP_P((
	BackendDB *be,
	Connection *conn,
	Operation *op,
	Entry *target,
	struct berval *endn,
	AttributeDescription *entry_at,
	BerVarray *vals));

extern int netinfo_back_operational LDAP_P((
	BackendDB *be,
	Connection *conn,
	Operation *op,
	Entry *e,
	AttributeName *attrs,
	int opattrs,
	Attribute **a));

extern int netinfo_back_entry_release LDAP_P((
	BackendDB *be,
	Connection *c,
	Operation *o,
	Entry *e,
	int rw));

extern int netinfo_back_group LDAP_P((
	Backend *be,
	Connection *conn,
	Operation *op,
	Entry *target,
	struct berval *gr_ndn,
	struct berval *op_ndn,
	ObjectClass *group_oc,
	AttributeDescription *group_at));

extern int netinfo_tool_entry_open LDAP_P((BackendDB *db, int mode));
extern int netinfo_tool_entry_close LDAP_P((BackendDB *db));
extern ID netinfo_tool_entry_next LDAP_P((BackendDB *db));
extern Entry *netinfo_tool_entry_get LDAP_P((BackendDB *db, ID id));
extern ID netinfo_tool_entry_put LDAP_P((BackendDB *db, Entry *e, struct berval *text));
extern int netinfo_tool_entry_reindex LDAP_P((BackendDB *db, ID id));
extern int netinfo_tool_sync LDAP_P((BackendDB *db));

LDAP_END_DECL

#endif /* _NETINFO_EXTERNAL_H */