summaryrefslogtreecommitdiff
path: root/source4/dsdb/schema/schema.h
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2009-09-15 08:14:54 -0700
committerAndrew Bartlett <abartlet@samba.org>2009-09-15 10:38:52 -0700
commit9a209ac252508bc9a5b1eaaaf256610aceb37736 (patch)
tree10df74943d8add501a89611f0e4d87eaf6c94e2c /source4/dsdb/schema/schema.h
parent231b2fa26139a38bb67b3777c80b72e2f9d6d904 (diff)
downloadsamba-9a209ac252508bc9a5b1eaaaf256610aceb37736.tar.gz
samba-9a209ac252508bc9a5b1eaaaf256610aceb37736.tar.bz2
samba-9a209ac252508bc9a5b1eaaaf256610aceb37736.zip
s4:schema Add code to provide an index into the subClass tree
In time, this should avoid the astounding (order) complexity of the objectclass sorting in objectclass.c eventually. Andrew Bartlett
Diffstat (limited to 'source4/dsdb/schema/schema.h')
-rw-r--r--source4/dsdb/schema/schema.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/source4/dsdb/schema/schema.h b/source4/dsdb/schema/schema.h
index a605e2f707..4e7e503931 100644
--- a/source4/dsdb/schema/schema.h
+++ b/source4/dsdb/schema/schema.h
@@ -146,6 +146,13 @@ struct dsdb_class {
uint32_t *mustContain_ids;
uint32_t *mayContain_ids;
uint32_t *systemPossSuperiors_ids;
+
+ /* An ordered index showing how this subClass fits into the
+ * subClass tree. that is, an objectclass that is not
+ * subClassOf anything is 0 (just in case), and top is 1, and
+ * subClasses of top are 2, subclasses of those classes are
+ * 3 */
+ uint32_t subClass_order;
};
struct dsdb_schema_oid_prefix {