~arges/ubuntu/quantal/rsyslog/fix-lp1059592

« back to all changes in this revision

Viewing changes to errmsg.h

  • Committer: Bazaar Package Importer
  • Author(s): Michael Biebl
  • Date: 2009-02-15 21:56:23 UTC
  • mto: (3.2.4 squeeze) (1.1.9 upstream)
  • mto: This revision was merged to the branch mainline in revision 14.
  • Revision ID: james.westby@ubuntu.com-20090215215623-xsycf628eo3kguc0
Tags: upstream-3.20.4
ImportĀ upstreamĀ versionĀ 3.20.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* The errmsg object. It is used to emit error message inside rsyslog.
2
 
 *
3
 
 * Copyright 2008 Rainer Gerhards and Adiscon GmbH.
4
 
 *
5
 
 * This file is part of rsyslog.
6
 
 *
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.
11
 
 *
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.
16
 
 *
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/>.
19
 
 *
20
 
 * A copy of the GPL can be found in the file "COPYING" in this distribution.
21
 
 */
22
 
#ifndef INCLUDED_ERRMSG_H
23
 
#define INCLUDED_ERRMSG_H
24
 
 
25
 
#include "errmsg.h"
26
 
 
27
 
/* TODO: define error codes */
28
 
#define NO_ERRCODE -1
29
 
 
30
 
/* the errmsg object */
31
 
typedef struct errmsg_s {
32
 
} errmsg_t;
33
 
 
34
 
 
35
 
/* interfaces */
36
 
BEGINinterface(errmsg) /* name must also be changed in ENDinterface macro! */
37
 
        void  __attribute__((format(printf, 2, 3))) (*LogError)(int iErrCode, char *pszErrFmt, ... );
38
 
ENDinterface(errmsg)
39
 
#define errmsgCURR_IF_VERSION 1 /* increment whenever you change the interface structure! */
40
 
 
41
 
 
42
 
/* prototypes */
43
 
PROTOTYPEObj(errmsg);
44
 
 
45
 
#endif /* #ifndef INCLUDED_ERRMSG_H */