mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-18 00:30:41 +01:00
milestone: make default modules compile again (but they do NOT work!)
This commit is contained in:
parent
d1a9ea216c
commit
84537ced75
@ -70,6 +70,10 @@ typedef struct _instanceData {
|
||||
uchar *pszRulesetName; /* primarily for debugging/display purposes */
|
||||
} instanceData;
|
||||
|
||||
typedef struct wrkrInstanceData {
|
||||
instanceData *pData;
|
||||
} wrkrInstanceData_t;
|
||||
|
||||
typedef struct configSettings_s {
|
||||
ruleset_t *pRuleset; /* ruleset to enqueue message to (NULL = Default, not recommended) */
|
||||
uchar *pszRulesetName;
|
||||
|
||||
@ -63,7 +63,6 @@ MODULE_CNFNAME("omtesting")
|
||||
*/
|
||||
DEF_OMOD_STATIC_DATA
|
||||
|
||||
|
||||
typedef struct _instanceData {
|
||||
enum { MD_SLEEP, MD_FAIL, MD_RANDFAIL, MD_ALWAYS_SUSPEND }
|
||||
mode;
|
||||
@ -76,6 +75,10 @@ typedef struct _instanceData {
|
||||
int iCurrRetries;
|
||||
} instanceData;
|
||||
|
||||
typedef struct wrkrInstanceData {
|
||||
instanceData *pData;
|
||||
} wrkrInstanceData_t;
|
||||
|
||||
typedef struct configSettings_s {
|
||||
int bEchoStdout; /* echo non-failed messages to stdout */
|
||||
} configSettings_t;
|
||||
|
||||
@ -262,7 +262,7 @@ static rsRetVal endTransaction(instanceData __attribute__((unused)) *pData)\
|
||||
#define BEGINdoAction \
|
||||
static rsRetVal doAction(uchar __attribute__((unused)) **ppString, unsigned __attribute__((unused)) iMsgOpts, wrkrInstanceData_t __attribute__((unused)) *pWrkrData)\
|
||||
{\
|
||||
instanceData pDate = NULL; /* deliberately make module abort if it does not support new IF */\
|
||||
instanceData *pData = NULL; /* deliberately make module abort if it does not support new IF */\
|
||||
DEFiRet;
|
||||
|
||||
#define CODESTARTdoAction \
|
||||
|
||||
@ -49,6 +49,10 @@ typedef struct _instanceData {
|
||||
EMPTY_STRUCT
|
||||
} instanceData;
|
||||
|
||||
typedef struct wrkrInstanceData {
|
||||
instanceData *pData;
|
||||
} wrkrInstanceData_t;
|
||||
|
||||
/* we do not need a createInstance()!
|
||||
BEGINcreateInstance
|
||||
CODESTARTcreateInstance
|
||||
|
||||
@ -181,6 +181,10 @@ typedef struct _instanceData {
|
||||
STATSCOUNTER_DEF(ctrMax, mutCtrMax);
|
||||
} instanceData;
|
||||
|
||||
typedef struct wrkrInstanceData {
|
||||
instanceData *pData;
|
||||
} wrkrInstanceData_t;
|
||||
|
||||
|
||||
typedef struct configSettings_s {
|
||||
int iDynaFileCacheSize; /* max cache for dynamic files */
|
||||
|
||||
@ -112,6 +112,10 @@ typedef struct _instanceData {
|
||||
int errsToReport; /* (remaining) number of errors to report */
|
||||
} instanceData;
|
||||
|
||||
typedef struct wrkrInstanceData {
|
||||
instanceData *pData;
|
||||
} wrkrInstanceData_t;
|
||||
|
||||
/* config data */
|
||||
typedef struct configSettings_s {
|
||||
uchar *pszTplName; /* name of the default template to use */
|
||||
|
||||
@ -72,6 +72,10 @@ typedef struct _instanceData {
|
||||
sbool bHadError; /* did we already have/report an error on this pipe? */
|
||||
} instanceData;
|
||||
|
||||
typedef struct wrkrInstanceData {
|
||||
instanceData *pData;
|
||||
} wrkrInstanceData_t;
|
||||
|
||||
typedef struct configSettings_s {
|
||||
EMPTY_STRUCT
|
||||
} configSettings_t;
|
||||
|
||||
@ -63,6 +63,10 @@ typedef struct _instanceData {
|
||||
uchar progName[MAXFNAME]; /* program to execute */
|
||||
} instanceData;
|
||||
|
||||
typedef struct wrkrInstanceData {
|
||||
instanceData *pData;
|
||||
} wrkrInstanceData_t;
|
||||
|
||||
BEGINcreateInstance
|
||||
CODESTARTcreateInstance
|
||||
ENDcreateInstance
|
||||
|
||||
@ -87,6 +87,10 @@ typedef struct _instanceData {
|
||||
uchar *tplName;
|
||||
} instanceData;
|
||||
|
||||
typedef struct wrkrInstanceData {
|
||||
instanceData *pData;
|
||||
} wrkrInstanceData_t;
|
||||
|
||||
typedef struct configSettings_s {
|
||||
EMPTY_STRUCT
|
||||
} configSettings_t;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user