1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
|
#ifndef _PROTO_H_
#define _PROTO_H_
/* This file is automatically generated with "make proto". DO NOT EDIT */
/* The following definitions come from common/ldb.c */
struct ldb_context *ldb_connect(const char *url, unsigned int flags,
const char *options[]);
int ldb_close(struct ldb_context *ldb);
int ldb_search(struct ldb_context *ldb,
const char *base,
enum ldb_scope scope,
const char *expression,
const char *attrs[], struct ldb_message ***res);
int ldb_search_free(struct ldb_context *ldb, struct ldb_message **msgs);
int ldb_add(struct ldb_context *ldb,
const struct ldb_message *message);
int ldb_modify(struct ldb_context *ldb,
const struct ldb_message *message);
int ldb_delete(struct ldb_context *ldb, const char *dn);
const char *ldb_errstring(struct ldb_context *ldb);
/* The following definitions come from common/ldb_ldif.c */
char *ldb_base64_encode(const char *buf, int len);
int ldb_should_b64_encode(const struct ldb_val *val);
int ldif_write(int (*fprintf_fn)(void *, const char *, ...),
void *private,
const struct ldb_message *msg);
void ldif_read_free(struct ldb_message *msg);
struct ldb_message *ldif_read(int (*fgetc_fn)(void *), void *private);
struct ldb_message *ldif_read_file(FILE *f);
struct ldb_message *ldif_read_string(const char *s);
int ldif_write_file(FILE *f, const struct ldb_message *msg);
/* The following definitions come from common/ldb_parse.c */
struct ldb_parse_tree *ldb_parse_tree(const char *s);
void ldb_parse_tree_free(struct ldb_parse_tree *tree);
/* The following definitions come from common/util.c */
void *realloc_array(void *ptr, size_t el_size, unsigned count);
int list_find(const void *needle,
const void *base, size_t nmemb, size_t size, comparison_fn_t comp_fn);
/* The following definitions come from ldb_ldap/ldb_ldap.c */
struct ldb_context *lldb_connect(const char *url,
unsigned int flags,
const char *options[]);
/* The following definitions come from ldb_tdb/ldb_index.c */
int ltdb_search_indexed(struct ldb_context *ldb,
const char *base,
enum ldb_scope scope,
struct ldb_parse_tree *tree,
const char *attrs[], struct ldb_message ***res);
int ltdb_index_add(struct ldb_context *ldb, const struct ldb_message *msg);
int ltdb_index_del(struct ldb_context *ldb, const struct ldb_message *msg);
/* The following definitions come from ldb_tdb/ldb_match.c */
int ldb_message_match(struct ldb_context *ldb,
struct ldb_message *msg,
struct ldb_parse_tree *tree,
const char *base,
enum ldb_scope scope);
/* The following definitions come from ldb_tdb/ldb_pack.c */
int ltdb_pack_data(struct ldb_context *ctx,
const struct ldb_message *message,
struct TDB_DATA *data);
int ltdb_unpack_data(struct ldb_context *ctx,
const struct TDB_DATA *data,
struct ldb_message *message);
/* The following definitions come from ldb_tdb/ldb_search.c */
int ldb_msg_find_attr(const struct ldb_message *msg, const char *attr);
int ltdb_has_wildcard(const struct ldb_val *val);
void ltdb_search_dn1_free(struct ldb_context *ldb, struct ldb_message *msg);
int ltdb_search_dn1(struct ldb_context *ldb, const char *dn, struct ldb_message *msg);
int ltdb_search_dn(struct ldb_context *ldb, char *dn,
const char *attrs[], struct ldb_message ***res);
int ltdb_add_attr_results(struct ldb_context *ldb, struct ldb_message *msg,
const char *attrs[],
unsigned int *count,
struct ldb_message ***res);
int ltdb_search_free(struct ldb_context *ldb, struct ldb_message **msgs);
int ltdb_search(struct ldb_context *ldb, const char *base,
enum ldb_scope scope, const char *expression,
const char *attrs[], struct ldb_message ***res);
/* The following definitions come from ldb_tdb/ldb_tdb.c */
struct TDB_DATA ltdb_key(const char *dn);
int ltdb_store(struct ldb_context *ldb, const struct ldb_message *msg, int flgs);
int ltdb_delete_noindex(struct ldb_context *ldb, const char *dn);
struct ldb_context *ltdb_connect(const char *url,
unsigned int flags,
const char *options[]);
/* The following definitions come from ldb_tdb/ldbadd.c */
/* The following definitions come from ldb_tdb/ldbdel.c */
/* The following definitions come from ldb_tdb/ldbsearch.c */
/* The following definitions come from tools/ldbadd.c */
/* The following definitions come from tools/ldbdel.c */
/* The following definitions come from tools/ldbsearch.c */
#endif /* _PROTO_H_ */
|