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