~zulcss/samba/server-dailies-3.4

« back to all changes in this revision

Viewing changes to lib/util/util_ldb.h

  • Committer: Chuck Short
  • Date: 2010-09-28 20:38:39 UTC
  • Revision ID: zulcss@ubuntu.com-20100928203839-pgjulytsi9ue63x1
Initial version

Show diffs side-by-side

added added

removed removed

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