1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-25 17:57:42 +03:00

s4/drs: prefixMap module initial definition

This commit is contained in:
Kamen Mazdrashki 2009-10-08 02:55:28 +03:00 committed by Anatoliy Atanasov
parent 47f30fd3e7
commit 784e0c199e
3 changed files with 69 additions and 1 deletions

View File

@ -39,7 +39,8 @@ SAMDB_SCHEMA_OBJ_FILES = $(addprefix $(dsdbsrcdir)/schema/, \
schema_syntax.o \
schema_description.o \
schema_convert_to_ol.o \
schema_inferiors.o)
schema_inferiors.o \
schema_prefixmap.o)
$(eval $(call proto_header_template,$(dsdbsrcdir)/schema/proto.h,$(SAMDB_SCHEMA_OBJ_FILES:.o=.c)))
# PUBLIC_HEADERS += dsdb/schema/schema.h

View File

@ -0,0 +1,45 @@
/*
Unix SMB/CIFS implementation.
DRS::prefixMap data structures
Copyright (C) Kamen Mazdrashki <kamen.mazdrashki@postpath.com> 2009
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _DSDB_PREFIXMAP_H
#define _DSDB_PREFIXMAP_H
/**
* oid-prefix in prefixmap
*/
struct dsdb_schema_prefixmap_oid {
uint32_t id;
DATA_BLOB *bin_oid; /* partial binary-oid prefix */
};
/**
* DSDB prefixMap internal presentation
*/
struct dsdb_schema_prefixmap {
uint32_t length;
struct dsdb_schema_prefixmap_oid *prefixes;
};
#include "dsdb/schema/proto.h"
#endif /* _DSDB_PREFIXMAP_H */

View File

@ -0,0 +1,22 @@
/*
Unix SMB/CIFS implementation.
DRS::prefixMap implementation
Copyright (C) Kamen Mazdrashki <kamen.mazdrashki@postpath.com> 2009
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "includes.h"