summaryrefslogtreecommitdiff
path: root/source4/dsdb/schema/schema.h
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-12-21 20:51:50 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:29:36 -0500
commit97d066464b68f0414c658693d3b768279906bf97 (patch)
tree7acee2a9f40a847b1f72a31085ef1017855f9d4f /source4/dsdb/schema/schema.h
parentbd587c5cd12959f1a1fc37108d9396a7585e5f80 (diff)
downloadsamba-97d066464b68f0414c658693d3b768279906bf97.tar.gz
samba-97d066464b68f0414c658693d3b768279906bf97.tar.bz2
samba-97d066464b68f0414c658693d3b768279906bf97.zip
r20306: remove the static oid mapping table
and attach the table to the dsdb_schema metze (This used to be commit df63995ec5f322d17145664c1f174783861e1723)
Diffstat (limited to 'source4/dsdb/schema/schema.h')
-rw-r--r--source4/dsdb/schema/schema.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/source4/dsdb/schema/schema.h b/source4/dsdb/schema/schema.h
index e872a6088e..c1f9081b2d 100644
--- a/source4/dsdb/schema/schema.h
+++ b/source4/dsdb/schema/schema.h
@@ -101,7 +101,23 @@ struct dsdb_class {
BOOL systemOnly;
};
+struct dsdb_schema_oid_prefix {
+ uint32_t id;
+ const char *oid;
+ size_t oid_len;
+};
+
struct dsdb_schema {
+ uint32_t num_prefixes;
+ struct dsdb_schema_oid_prefix *prefixes;
+
+ /*
+ * the last element of the prefix mapping table isn't a oid,
+ * it starts with 0xFF and has 21 bytes and is maybe a schema
+ * version number
+ */
+ const char *unknown_magic;
+
struct dsdb_attribute *attributes;
struct dsdb_class *classes;
};