Move lib/util from source4 to top-level libutil.
[ira/wip.git] / lib / util / util_ldb.h
1 #ifndef __LIB_UTIL_UTIL_LDB_H__
2 #define __LIB_UTIL_UTIL_LDB_H__
3
4 /* The following definitions come from lib/util/util_ldb.c  */
5
6 int gendb_search_v(struct ldb_context *ldb,
7                    TALLOC_CTX *mem_ctx,
8                    struct ldb_dn *basedn,
9                    struct ldb_message ***msgs,
10                    const char * const *attrs,
11                    const char *format,
12                    va_list ap)  PRINTF_ATTRIBUTE(6,0);
13 int gendb_search(struct ldb_context *ldb,
14                  TALLOC_CTX *mem_ctx,
15                  struct ldb_dn *basedn,
16                  struct ldb_message ***res,
17                  const char * const *attrs,
18                  const char *format, ...) PRINTF_ATTRIBUTE(6,7);
19 int gendb_search_dn(struct ldb_context *ldb,
20                  TALLOC_CTX *mem_ctx,
21                  struct ldb_dn *dn,
22                  struct ldb_message ***res,
23                  const char * const *attrs);
24 int gendb_add_ldif(struct ldb_context *ldb, const char *ldif_string);
25 char *wrap_casefold(void *context, void *mem_ctx, const char *s, size_t n);
26
27 #endif /* __LIB_UTIL_UTIL_LDB_H__ */