s3:registry: move prototype from reg_init_smbconf.c to its own header.
authorMichael Adam <obnox@samba.org>
Tue, 21 Sep 2010 06:50:54 +0000 (08:50 +0200)
committerMichael Adam <obnox@samba.org>
Tue, 21 Sep 2010 06:52:06 +0000 (08:52 +0200)
source3/include/registry.h
source3/lib/smbconf/smbconf_reg.c
source3/registry/reg_init_smbconf.c
source3/registry/reg_init_smbconf.h [new file with mode: 0644]

index 99990eca98c1fddbddf9fa8dec50667bf2f71032..c87b89af7bd0c7376dbfdfaaf25e3455dde69d49 100644 (file)
@@ -129,9 +129,4 @@ struct registry_key {
 #define REG_KEY_HKPD           1
 #define REG_KEY_HKPT           2
 
-
-/* The following definitions come from registry/reg_init_smbconf.c  */
-
-WERROR registry_init_smbconf(const char *keyname);
-
 #endif /* _REGISTRY_H */
index f6d6bd7104a387a679816c050a8b741d14b874be..11affd9479e92c9271099723f4d39eb5ad195053 100644 (file)
@@ -24,6 +24,7 @@
 #include "registry/reg_backend_db.h"
 #include "registry/reg_util_token.h"
 #include "registry/reg_api_util.h"
+#include "registry/reg_init_smbconf.h"
 #include "lib/smbconf/smbconf_init.h"
 #include "lib/smbconf/smbconf_reg.h"
 
index e2024df8b52cfd8404006d4f4069d37c9656f8a2..18ee455bfd7d3b04cb6b0b0eb66a0fc8b0c0b3c0 100644 (file)
@@ -22,6 +22,7 @@
 #include "reg_cachehook.h"
 #include "reg_backend_db.h"
 #include "reg_init_basic.h"
+#include "reg_init_smbconf.h"
 
 #undef DBGC_CLASS
 #define DBGC_CLASS DBGC_REGISTRY
diff --git a/source3/registry/reg_init_smbconf.h b/source3/registry/reg_init_smbconf.h
new file mode 100644 (file)
index 0000000..480d7af
--- /dev/null
@@ -0,0 +1,27 @@
+/*
+ * Unix SMB/CIFS implementation.
+ *
+ * Registry helper routines
+ *
+ * Copyright (C) Michael Adam 2007
+ * 
+ * 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 _REG_INIT_SMBCONF_H
+#define _REG_INIT_SMBCONF_H
+
+WERROR registry_init_smbconf(const char *keyname);
+
+#endif /* _REG_INIT_SMBCONF_H */