1
/* Definition of globally-accessible data items.
3
* This module provides access methods to items of global scope. Most often,
4
* these globals serve as defaults to initialize local settings. Currently,
5
* many of them are either constants or global variable references. However,
6
* this module provides the necessary hooks to change that at any time.
8
* Please note that there currently is no glbl.c file as we do not yet
9
* have any implementations.
11
* Copyright 2008 Rainer Gerhards and Adiscon GmbH.
13
* This file is part of rsyslog.
15
* Rsyslog is free software: you can redistribute it and/or modify
16
* it under the terms of the GNU General Public License as published by
17
* the Free Software Foundation, either version 3 of the License, or
18
* (at your option) any later version.
20
* Rsyslog is distributed in the hope that it will be useful,
21
* but WITHOUT ANY WARRANTY; without even the implied warranty of
22
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23
* GNU General Public License for more details.
25
* You should have received a copy of the GNU General Public License
26
* along with Rsyslog. If not, see <http://www.gnu.org/licenses/>.
28
* A copy of the GPL can be found in the file "COPYING" in this distribution.
31
#ifndef GLOBALS_H_INCLUDED
32
#define GLOBALS_H_INCLUDED
34
#define glblGetIOBufSize() 4096 /* size of the IO buffer, e.g. for strm class */
36
extern uchar *pszWorkDir;
37
#define glblGetWorkDir() (pszWorkDir == NULL ? (uchar*) "" : pszWorkDir)
39
#endif /* #ifndef GLOBALS_H_INCLUDED */