1
/* The errmsg object. It is used to emit error message inside rsyslog.
3
* Copyright 2008 Rainer Gerhards and Adiscon GmbH.
5
* This file is part of rsyslog.
7
* Rsyslog is free software: you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License as published by
9
* the Free Software Foundation, either version 3 of the License, or
10
* (at your option) any later version.
12
* Rsyslog is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
17
* You should have received a copy of the GNU General Public License
18
* along with Rsyslog. If not, see <http://www.gnu.org/licenses/>.
20
* A copy of the GPL can be found in the file "COPYING" in this distribution.
22
#ifndef INCLUDED_ERRMSG_H
23
#define INCLUDED_ERRMSG_H
27
/* TODO: define error codes */
30
/* the errmsg object */
31
typedef struct errmsg_s {
36
BEGINinterface(errmsg) /* name must also be changed in ENDinterface macro! */
37
void __attribute__((format(printf, 2, 3))) (*LogError)(int iErrCode, char *pszErrFmt, ... );
39
#define errmsgCURR_IF_VERSION 1 /* increment whenever you change the interface structure! */
45
#endif /* #ifndef INCLUDED_ERRMSG_H */