librpc: Shorten dcerpc_binding_handle_call a bit
[Samba/vl.git] / lib / ldb / tools / ldbutil.h
blobf8d3f3a2106deae4bb9242dcc33e9a34b64d58b2
1 /*
2 ldb database library utility header file
4 Copyright (C) Matthieu Patou 2009
6 ** NOTE! The following LGPL license applies to the ldb
7 ** library. This does NOT imply that all of Samba is released
8 ** under the LGPL
10 This library is free software; you can redistribute it and/or
11 modify it under the terms of the GNU Lesser General Public
12 License as published by the Free Software Foundation; either
13 version 3 of the License, or (at your option) any later version.
15 This library is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 Lesser General Public License for more details.
20 You should have received a copy of the GNU Lesser General Public
21 License along with this library; if not, see <http://www.gnu.org/licenses/>.
25 * Name: ldb
27 * Description: Common function used by ldb_add/ldb_modify/ldb_delete
29 * Author: Matthieu Patou
32 #include "ldb.h"
34 int ldb_add_ctrl(struct ldb_context *ldb,
35 const struct ldb_message *message,
36 struct ldb_control **controls);
37 int ldb_delete_ctrl(struct ldb_context *ldb, struct ldb_dn *dn,
38 struct ldb_control **controls);
39 int ldb_modify_ctrl(struct ldb_context *ldb,
40 const struct ldb_message *message,
41 struct ldb_control **controls);
42 int ldb_search_ctrl(struct ldb_context *ldb, TALLOC_CTX *mem_ctx,
43 struct ldb_result **result, struct ldb_dn *base,
44 enum ldb_scope scope, const char * const *attrs,
45 struct ldb_control **controls,
46 const char *exp_fmt, ...);