]> git.sur5r.net Git - openldap/blob - servers/slapd/back-tcl/tcl_back.h
Clean up include logging
[openldap] / servers / slapd / back-tcl / tcl_back.h
1 /* $OpenLDAP$ */
2 /* tcl_back.h - tcl backend header (structs, functions)
3  *
4  * Copyright 1999, Ben Collins <bcollins@debian.org>, All rights reserved.
5  *
6  * Redistribution and use in source and binary forms are permitted only
7  * as authorized by the OpenLDAP Public License.  A copy of this
8  * license is available at http://www.OpenLDAP.org/license.html or
9  * in file LICENSE in the top-level directory of the distribution.
10  */
11
12 #include <tcl.h>
13
14 #ifndef SLAPD_TCL_H
15 #define SLAPD_TCL_H
16
17 #include <ldap_cdefs.h>
18 #include "external.h"
19
20 extern ldap_pvt_thread_mutex_t tcl_interpreter_mutex;
21
22 struct i_info {
23         Tcl_Interp *interp;
24         char *name;
25         struct i_info *next;
26         int count;
27 };
28
29 extern struct i_info *global_i;
30
31 struct tclinfo {
32         char *script_path;
33         struct i_info *ti_ii;
34         char *ti_bind;
35         char *ti_unbind;
36         char *ti_search;
37         char *ti_compare;
38         char *ti_modify;
39         char *ti_modrdn;
40         char *ti_add;
41         char *ti_delete;
42         char *ti_abandon;
43 };
44
45 void readtclscript (char *script, Tcl_Interp * my_tcl);
46 char *tcl_clean_entry (Entry * e);
47
48 int tcl_ldap_debug (
49         ClientData clientData,
50         Tcl_Interp * interp,
51         int argc,
52         char *argv[]
53 );
54
55 int interp_send_results (
56         Backend * be,
57         Connection * conn,
58         Operation * op,
59         char *result,
60         char **attrs,
61         int attrsonly
62 );
63
64 #endif