816ddcfbb39695f0ebf25a01e5872e09f27d4543
[samba.git] / source4 / dsdb / schema / prefixmap.h
1 /*
2    Unix SMB/CIFS implementation.
3
4    DRS::prefixMap data structures
5
6    Copyright (C) Kamen Mazdrashki <kamen.mazdrashki@postpath.com> 2009
7
8    This program is free software; you can redistribute it and/or modify
9    it under the terms of the GNU General Public License as published by
10    the Free Software Foundation; either version 3 of the License, or
11    (at your option) any later version.
12
13    This program is distributed in the hope that it will be useful,
14    but WITHOUT ANY WARRANTY; without even the implied warranty of
15    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16    GNU General Public License for more details.
17
18    You should have received a copy of the GNU General Public License
19    along with this program.  If not, see <http://www.gnu.org/licenses/>.
20 */
21
22 #ifndef _DSDB_PREFIXMAP_H
23 #define _DSDB_PREFIXMAP_H
24
25 /**
26  * oid-prefix in prefixmap
27  */
28 struct dsdb_schema_prefixmap_oid {
29         uint32_t  id;
30         DATA_BLOB bin_oid; /* partial binary-oid prefix */
31 };
32
33 /**
34  * DSDB prefixMap internal presentation
35  */
36 struct dsdb_schema_prefixmap {
37         uint32_t length;
38         struct dsdb_schema_prefixmap_oid *prefixes;
39 };
40
41
42
43 #endif /* _DSDB_PREFIXMAP_H */