summaryrefslogtreecommitdiff
path: root/source3/groupdb
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2011-10-12 11:17:57 +0200
committerGünther Deschner <gd@samba.org>2011-10-12 13:51:46 +0200
commita0cbe469bca5635f001b0f7b2e7e9d58775ff81f (patch)
treea7e8b68bd1093ae4b5f610b01ce38772e4bbabbd /source3/groupdb
parent031519cec9ac341da706cabd9310f5543a59d98c (diff)
downloadsamba-a0cbe469bca5635f001b0f7b2e7e9d58775ff81f.tar.gz
s3-groupdb: split out groupdb/mapping_tdb.h.
Guenther
Diffstat (limited to 'source3/groupdb')
-rw-r--r--source3/groupdb/mapping.c1
-rw-r--r--source3/groupdb/mapping_tdb.c1
-rw-r--r--source3/groupdb/mapping_tdb.h30
-rw-r--r--source3/groupdb/proto.h4
4 files changed, 32 insertions, 4 deletions
diff --git a/source3/groupdb/mapping.c b/source3/groupdb/mapping.c
index e9a6c3b7297..907d40fe2af 100644
--- a/source3/groupdb/mapping.c
+++ b/source3/groupdb/mapping.c
@@ -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;
diff --git a/source3/groupdb/mapping_tdb.c b/source3/groupdb/mapping_tdb.c
index 447f1871de4..0c4b2fa4059 100644
--- a/source3/groupdb/mapping_tdb.c
+++ b/source3/groupdb/mapping_tdb.c
@@ -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
index 00000000000..86b0ecb133e
--- /dev/null
+++ b/source3/groupdb/mapping_tdb.h
@@ -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_ */
diff --git a/source3/groupdb/proto.h b/source3/groupdb/proto.h
index f30584cc8fe..ddcdf7a3b9b 100644
--- a/source3/groupdb/proto.h
+++ b/source3/groupdb/proto.h
@@ -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_ */