From f741f656737f4ec46cd318e986b6bf412ed309d2 Mon Sep 17 00:00:00 2001 From: Martin Pool Date: Mon, 19 Nov 2001 02:49:53 +0000 Subject: Store some path names in global variables initialized to configure default, rather than in preprocessor macros. (This used to be commit 79ec88f0da40faebe1e587f1b3e87b5f2b184f58) --- source3/include/dynconfig.h | 31 +++++++++++++++++++++++++++++++ source3/include/includes.h | 1 + 2 files changed, 32 insertions(+) create mode 100644 source3/include/dynconfig.h (limited to 'source3/include') diff --git a/source3/include/dynconfig.h b/source3/include/dynconfig.h new file mode 100644 index 0000000000..e01d1a39a8 --- /dev/null +++ b/source3/include/dynconfig.h @@ -0,0 +1,31 @@ +/* + Unix SMB/Netbios implementation. + Copyright (C) 2001 by Martin Pool + + 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 2 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, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +*/ + +/** + * @file dynconfig.h + * + * @brief Exported global configurations. + **/ + +extern char const *dyn_SBINDIR, + *dyn_BINDIR, + *dyn_SWATDIR; + +extern pstring dyn_CONFIGFILE; +extern pstring dyn_LOGFILEBASE; diff --git a/source3/include/includes.h b/source3/include/includes.h index fde3fc30f2..4acd340abd 100644 --- a/source3/include/includes.h +++ b/source3/include/includes.h @@ -658,6 +658,7 @@ extern int errno; #include "messages.h" #include "util_list.h" #include "charset.h" +#include "dynconfig.h" #include "util_getent.h" -- cgit