~ubuntu-branches/ubuntu/lucid/rsyslog/lucid

« back to all changes in this revision

Viewing changes to objomsr.h

  • Committer: Bazaar Package Importer
  • Author(s): Michael Biebl
  • Date: 2007-10-19 17:21:49 UTC
  • Revision ID: james.westby@ubuntu.com-20071019172149-ie6ej2xve33mxiu7
Tags: upstream-1.19.10
ImportĀ upstreamĀ versionĀ 1.19.10

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* Definition of the omsr (omodStringRequest) object.
 
2
 *
 
3
 * Copyright 2007 Rainer Gerhards and Adiscon GmbH.
 
4
 *
 
5
 * This program is free software; you can redistribute it and/or
 
6
 * modify it under the terms of the GNU General Public License
 
7
 * as published by the Free Software Foundation; either version 2
 
8
 * of the License, or (at your option) any later version.
 
9
 *
 
10
 * This program is distributed in the hope that it will be useful,
 
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
13
 * GNU General Public License for more details.
 
14
 *
 
15
 * You should have received a copy of the GNU General Public License
 
16
 * along with this program; if not, write to the Free Software
 
17
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
18
 *
 
19
 * A copy of the GPL can be found in the file "COPYING" in this distribution.
 
20
 */
 
21
 
 
22
#ifndef OBJOMSR_H_INCLUDED
 
23
#define OBJOMSR_H_INCLUDED
 
24
 
 
25
/* define flags for required template options */
 
26
#define OMSR_NO_RQD_TPL_OPTS    0
 
27
#define OMSR_RQD_TPL_OPT_SQL    1
 
28
/* next option is 2, 4, 8, ... */
 
29
 
 
30
struct omodStringRequest_s {    /* strings requested by output module for doAction() */
 
31
        int iNumEntries;        /* number of array entries for data elements below */
 
32
        uchar **ppTplName;      /* pointer to array of template names */
 
33
        int *piTplOpts;/* pointer to array of check-options when pulling template */
 
34
};
 
35
typedef struct omodStringRequest_s omodStringRequest_t;
 
36
 
 
37
/* prototypes */
 
38
rsRetVal OMSRdestruct(omodStringRequest_t *pThis);
 
39
rsRetVal OMSRconstruct(omodStringRequest_t **ppThis, int iNumEntries);
 
40
rsRetVal OMSRsetEntry(omodStringRequest_t *pThis, int iEntry, uchar *pTplName, int iTplOpts);
 
41
int OMSRgetEntryCount(omodStringRequest_t *pThis);
 
42
int OMSRgetEntry(omodStringRequest_t *pThis, int iEntry, uchar **ppTplName, int *piTplOpts);
 
43
 
 
44
#endif /* #ifndef OBJOMSR_H_INCLUDED */