r26265: Use task-provided loadparm context in nbt and rpc servers.
[jelmer/samba4-debian.git] / source / lib / util / util_ldb.h
1 #ifndef __LIB_UTIL_UTIL_LDB_H__
2 #define __LIB_UTIL_UTIL_LDB_H__
3
4 #undef _PRINTF_ATTRIBUTE
5 #define _PRINTF_ATTRIBUTE(a1, a2) PRINTF_ATTRIBUTE(a1, a2)
6 /* This file was automatically generated by mkproto.pl. DO NOT EDIT */
7
8 #ifndef _PUBLIC_
9 #define _PUBLIC_
10 #endif
11
12 #ifndef _PURE_
13 #define _PURE_
14 #endif
15
16 #ifndef _NORETURN_
17 #define _NORETURN_
18 #endif
19
20 #ifndef _DEPRECATED_
21 #define _DEPRECATED_
22 #endif
23
24 #ifndef _WARN_UNUSED_RESULT_
25 #define _WARN_UNUSED_RESULT_
26 #endif
27
28
29 /* The following definitions come from lib/util/util_ldb.c  */
30
31 int gendb_search_v(struct ldb_context *ldb, 
32                    TALLOC_CTX *mem_ctx,
33                    struct ldb_dn *basedn,
34                    struct ldb_message ***msgs,
35                    const char * const *attrs,
36                    const char *format, 
37                    va_list ap)  _PRINTF_ATTRIBUTE(6,0);
38 int gendb_search(struct ldb_context *ldb,
39                  TALLOC_CTX *mem_ctx, 
40                  struct ldb_dn *basedn,
41                  struct ldb_message ***res,
42                  const char * const *attrs,
43                  const char *format, ...) _PRINTF_ATTRIBUTE(6,7);
44 int gendb_search_dn(struct ldb_context *ldb,
45                  TALLOC_CTX *mem_ctx, 
46                  struct ldb_dn *dn,
47                  struct ldb_message ***res,
48                  const char * const *attrs);
49 int gendb_add_ldif(struct ldb_context *ldb, const char *ldif_string);
50 char *wrap_casefold(void *context, void *mem_ctx, const char *s);
51 #undef _PRINTF_ATTRIBUTE
52 #define _PRINTF_ATTRIBUTE(a1, a2)
53
54 #endif /* __LIB_UTIL_UTIL_LDB_H__ */
55