From d25b2adf34a86c8abd0129304143f72dd6a9807c Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Tue, 21 Sep 2010 08:45:06 +0200 Subject: s3:registry: move prototype from reg_init_full.c to its own header. --- source3/include/registry.h | 4 ---- source3/registry/reg_init_full.c | 1 + source3/registry/reg_init_full.h | 27 +++++++++++++++++++++++++++ source3/smbd/server.c | 1 + 4 files changed, 29 insertions(+), 4 deletions(-) create mode 100644 source3/registry/reg_init_full.h (limited to 'source3') diff --git a/source3/include/registry.h b/source3/include/registry.h index 03b4a5c3cc..99990eca98 100644 --- a/source3/include/registry.h +++ b/source3/include/registry.h @@ -130,10 +130,6 @@ struct registry_key { #define REG_KEY_HKPT 2 -/* The following definitions come from registry/reg_init_full.c */ - -WERROR registry_init_full(void); - /* The following definitions come from registry/reg_init_smbconf.c */ WERROR registry_init_smbconf(const char *keyname); diff --git a/source3/registry/reg_init_full.c b/source3/registry/reg_init_full.c index e17bc413c2..fca07b1693 100644 --- a/source3/registry/reg_init_full.c +++ b/source3/registry/reg_init_full.c @@ -27,6 +27,7 @@ #include "reg_perfcount.h" #include "reg_eventlog.h" #include "reg_init_basic.h" +#include "reg_init_full.h" #undef DBGC_CLASS #define DBGC_CLASS DBGC_REGISTRY diff --git a/source3/registry/reg_init_full.h b/source3/registry/reg_init_full.h new file mode 100644 index 0000000000..8ba327e504 --- /dev/null +++ b/source3/registry/reg_init_full.h @@ -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 . + */ + +#ifndef _REG_INIT_FULL_H +#define _REG_INIT_FULL_H + +WERROR registry_init_full(void); + +#endif /* _REG_INIT_FULL_H */ diff --git a/source3/smbd/server.c b/source3/smbd/server.c index e2edaf3a3c..8a55f933f7 100644 --- a/source3/smbd/server.c +++ b/source3/smbd/server.c @@ -26,6 +26,7 @@ #include "smbd/globals.h" #include "librpc/gen_ndr/messaging.h" #include "registry.h" +#include "registry/reg_init_full.h" #include "libcli/auth/schannel.h" #include "secrets.h" #include "memcache.h" -- cgit