s3-groupdb: split out groupdb/mapping_tdb.h.
authorGünther Deschner <gd@samba.org>
Wed, 12 Oct 2011 09:17:57 +0000 (11:17 +0200)
committerGünther Deschner <gd@samba.org>
Wed, 12 Oct 2011 11:51:46 +0000 (13:51 +0200)
Guenther

source3/groupdb/mapping.c
source3/groupdb/mapping_tdb.c
source3/groupdb/mapping_tdb.h [new file with mode: 0644]
source3/groupdb/proto.h

index e9a6c3b7297517a31f16baec569959af3723fe8f..907d40fe2af39c15c7acc9ec67d48a6ea5022b46 100644 (file)
@@ -27,6 +27,7 @@
 #include "../libcli/security/security.h"
 #include "lib/winbind_util.h"
 #include "tdb_compat.h"
+#include "groupdb/mapping_tdb.h"
 
 static const struct mapping_backend *backend;
 
index 447f1871de4fa7de55640347746fd20367ca6fde..0c4b2fa405935d365f91bebc1173f4f7e0e4859c 100644 (file)
@@ -28,6 +28,7 @@
 #include "dbwrap/dbwrap_open.h"
 #include "util_tdb.h"
 #include "../libcli/security/security.h"
+#include "groupdb/mapping_tdb.h"
 
 static struct db_context *db; /* used for driver files */
 
diff --git a/source3/groupdb/mapping_tdb.h b/source3/groupdb/mapping_tdb.h
new file mode 100644 (file)
index 0000000..86b0ecb
--- /dev/null
@@ -0,0 +1,30 @@
+/*
+ *  Unix SMB/CIFS implementation.
+ *  RPC Pipe client / server routines
+ *  Copyright (C) Andrew Tridgell              1992-2006,
+ *  Copyright (C) Jean François Micouleau      1998-2001.
+ *  Copyright (C) Volker Lendecke              2006.
+ *  Copyright (C) Gerald Carter                2006.
+ *
+ *  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 _GROUPDB_MAPPING_TDB_H_
+#define _GROUPDB_MAPPING_TDB_H_
+
+/* The following definitions come from groupdb/mapping_tdb.c  */
+
+const struct mapping_backend *groupdb_tdb_init(void);
+
+#endif /* _GROUPDB_MAPPING_TDB_H_ */
index f30584cc8fe1a1c29ee8716da19d6f5c7043d989..ddcdf7a3b9ba1999112dc81a2086171283a3aa3e 100644 (file)
@@ -93,8 +93,4 @@ NTSTATUS pdb_nop_enum_group_mapping(struct pdb_methods *methods,
                                           bool unix_only);
 NTSTATUS pdb_create_builtin_alias(uint32 rid);
 
-/* The following definitions come from groupdb/mapping_tdb.c  */
-
-const struct mapping_backend *groupdb_tdb_init(void);
-
 #endif /* _GROUPDB_PROTO_H_ */