2 #ifndef _SQL_EXTERNAL_H
3 #define _SQL_EXTERNAL_H
6 * Copyright 1999, Dmitry Kovalev <mit@openldap.org>, All rights reserved.
8 * Redistribution and use in source and binary forms are permitted only
9 * as authorized by the OpenLDAP Public License. A copy of this
10 * license is available at http://www.OpenLDAP.org/license.html or
11 * in file LICENSE in the top-level directory of the distribution.
17 extern int sql_back_initialize LDAP_P(( BackendInfo *bi ));
18 extern int backsql_destroy LDAP_P(( BackendInfo *bi ));
20 extern int backsql_db_init LDAP_P(( BackendDB *bd ));
21 extern int backsql_db_open LDAP_P(( BackendDB *bd ));
22 extern int backsql_db_close LDAP_P(( BackendDB *bd ));
23 extern int backsql_db_destroy LDAP_P(( BackendDB *bd ));
25 extern int backsql_db_config LDAP_P(( BackendDB *bd,
26 const char *fname, int lineno, int argc, char **argv ));
28 extern int backsql_bind LDAP_P(( BackendDB *bd,
29 Connection *conn, Operation *op,
30 const char *dn, const char *ndn, int method,
31 struct berval *cred, char** edn ));
33 extern int backsql_unbind LDAP_P(( BackendDB *bd,
34 Connection *conn, Operation *op ));
36 extern int backsql_search LDAP_P(( BackendDB *bd,
37 Connection *conn, Operation *op,
38 const char *base, const char *nbase,
39 int scope, int deref, int sizelimit, int timelimit,
40 Filter *filter, const char *filterstr,
41 char **attrs, int attrsonly ));
43 extern int backsql_compare LDAP_P((BackendDB *bd,
44 Connection *conn, Operation *op,
45 const char *dn, const char *ndn,
46 AttributeAssertion *ava ));
48 extern int backsql_modify LDAP_P(( BackendDB *bd,
49 Connection *conn, Operation *op,
50 const char *dn, const char *ndn,
53 extern int backsql_modrdn LDAP_P(( BackendDB *bd,
54 Connection *conn, Operation *op,
55 const char *dn, const char *ndn,
56 const char *newrdn, int deleteoldrdn,
57 const char *newSuperior ));
59 extern int backsql_add LDAP_P(( BackendDB *bd,
60 Connection *conn, Operation *op, Entry *e ));
62 extern int backsql_delete LDAP_P(( BackendDB *bd,
63 Connection *conn, Operation *op,
64 const char *dn, const char *ndn ));
66 extern int backsql_abandon LDAP_P(( BackendDB *bd,
67 Connection *conn, Operation *op, int msgid ));
69 extern int backsql_connection_destroy LDAP_P(( BackendDB *bd,
74 #endif /* _SQL_EXTERNAL_H */