summaryrefslogtreecommitdiffstats
path: root/var.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-02-20 18:54:20 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2008-02-20 18:54:20 +0000
commit44bb5af7ccef417a1d088527fc02af5f0e8d3dc5 (patch)
tree6a28892a1253b4f199a4f55c64b1a65fbdd38386 /var.h
parentfa150f43db5f9673a5b9dfb0727767eca60e4453 (diff)
downloadrsyslog-44bb5af7ccef417a1d088527fc02af5f0e8d3dc5.tar.gz
rsyslog-44bb5af7ccef417a1d088527fc02af5f0e8d3dc5.tar.xz
rsyslog-44bb5af7ccef417a1d088527fc02af5f0e8d3dc5.zip
begun expr compile process, first steps done
Diffstat (limited to 'var.h')
-rw-r--r--var.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/var.h b/var.h
index 9f3e7d82..b497e410 100644
--- a/var.h
+++ b/var.h
@@ -22,9 +22,11 @@
#ifndef INCLUDED_VAR_H
#define INCLUDED_VAR_H
+#include "stringbuf.h"
/* data types */
-typedef enum { /* do NOT start at 0 to detect uninitialized types after calloc() */
+typedef enum {
+ VARTYPE_NONE = 0, /* currently no value set */
VARTYPE_PSZ = 1,
VARTYPE_SHORT = 2,
VARTYPE_INT = 3,
@@ -53,6 +55,8 @@ typedef struct var_s {
rsRetVal varConstruct(var_t **ppThis);
rsRetVal varConstructFinalize(var_t __attribute__((unused)) *pThis);
rsRetVal varDestruct(var_t **ppThis);
+rsRetVal varSetString(var_t *pThis, rsCStrObj *pCStr);
PROTOTYPEObjClassInit(var);
+PROTOTYPEObjDebugPrint(var);
#endif /* #ifndef INCLUDED_VAR_H */