~ubuntu-branches/ubuntu/karmic/rsyslog/karmic-200908151517

« back to all changes in this revision

Viewing changes to glbl.h

  • Committer: Bazaar Package Importer
  • Author(s): Michael Biebl
  • Date: 2008-04-23 16:46:39 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20080423164639-5acmt8a4vpxjgnxw
Tags: 3.14.2-3
* debian/rsyslog-doc.install
  - Fix a typo in the install path of the dia files. Closes: #477489
    Thanks to Justin B Rye for the patch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* Definition of globally-accessible data items.
 
2
 *
 
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.
 
7
 *
 
8
 * Please note that there currently is no glbl.c file as we do not yet
 
9
 * have any implementations.
 
10
 *
 
11
 * Copyright 2008 Rainer Gerhards and Adiscon GmbH.
 
12
 *
 
13
 * This file is part of rsyslog.
 
14
 *
 
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.
 
19
 *
 
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.
 
24
 *
 
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/>.
 
27
 *
 
28
 * A copy of the GPL can be found in the file "COPYING" in this distribution.
 
29
 */
 
30
 
 
31
#ifndef GLOBALS_H_INCLUDED
 
32
#define GLOBALS_H_INCLUDED
 
33
 
 
34
#define glblGetIOBufSize() 4096 /* size of the IO buffer, e.g. for strm class */
 
35
 
 
36
extern uchar *pszWorkDir;
 
37
#define glblGetWorkDir() (pszWorkDir == NULL ? (uchar*) "" : pszWorkDir)
 
38
 
 
39
#endif /* #ifndef GLOBALS_H_INCLUDED */