e340fe73671ba52b3c2ff7de76196d05aeff0451
[kamenim/samba.git] / source4 / lib / ldb / include / ldb_handlers.h
1 /* 
2    ldb database library
3
4    Copyright (C) Simo Sorce  2005
5
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
9    
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 2 of the License, or (at your option) any later version.
14
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.
19
20    You should have received a copy of the GNU Lesser General Public
21    License along with this library; if not, write to the Free Software
22    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
23 */
24
25 /*
26  *  Name: ldb
27  *
28  *  Component: ldb header
29  *
30  *  Description: defines attribute handlers
31  *
32  *  Author: Simo Sorce
33  */
34
35
36 int ldb_handler_copy(           struct ldb_context *ldb, void *mem_ctx,
37                                 const struct ldb_val *in, struct ldb_val *out);
38
39 int ldb_handler_fold(           struct ldb_context *ldb, void *mem_ctx,
40                                 const struct ldb_val *in, struct ldb_val *out);
41
42 int ldb_canonicalise_Integer(   struct ldb_context *ldb, void *mem_ctx,
43                                 const struct ldb_val *in, struct ldb_val *out);
44
45 int ldb_comparison_Integer(     struct ldb_context *ldb, void *mem_ctx,
46                                 const struct ldb_val *v1, const struct ldb_val *v2);
47
48 int ldb_comparison_binary(      struct ldb_context *ldb, void *mem_ctx,
49                                 const struct ldb_val *v1, const struct ldb_val *v2);
50
51 int ldb_comparison_fold(        struct ldb_context *ldb, void *mem_ctx,
52                                 const struct ldb_val *v1, const struct ldb_val *v2);
53
54 int ldb_canonicalise_dn(        struct ldb_context *ldb, void *mem_ctx,
55                                 const struct ldb_val *in, struct ldb_val *out);
56
57 int ldb_comparison_dn(          struct ldb_context *ldb, void *mem_ctx,
58                                 const struct ldb_val *v1, const struct ldb_val *v2);
59
60 int ldb_comparison_objectclass( struct ldb_context *ldb, void *mem_ctx,
61                                 const struct ldb_val *v1, const struct ldb_val *v2);
62
63 int ldb_comparison_utctime(     struct ldb_context *ldb, void *mem_ctx,
64                                 const struct ldb_val *v1, const struct ldb_val *v2);
65
66 int ldb_canonicalise_utctime(   struct ldb_context *ldb, void *mem_ctx,
67                                 const struct ldb_val *in, struct ldb_val *out);
68