diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2008-07-07 09:41:31 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2008-07-07 09:41:31 +0200 |
commit | 37fd063042821dc328c88e1f7366543decdcb76f (patch) | |
tree | 5f14f9144f7c4c9ad3a071535ccc8a4b48b40218 /runtime/vmprg.h | |
parent | 06001e951f5b5d0a7919c61057bc7a87b9eb8cba (diff) | |
download | rsyslog-37fd063042821dc328c88e1f7366543decdcb76f.tar.gz rsyslog-37fd063042821dc328c88e1f7366543decdcb76f.tar.bz2 rsyslog-37fd063042821dc328c88e1f7366543decdcb76f.zip |
added capability to create a printable string of a vmprg
This is needed so that we can create simple testbenches which
will check the result of a test (a generated program) via a
simple strcmp.
Diffstat (limited to 'runtime/vmprg.h')
-rw-r--r-- | runtime/vmprg.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/vmprg.h b/runtime/vmprg.h index db1f62f0..c1042f7d 100644 --- a/runtime/vmprg.h +++ b/runtime/vmprg.h @@ -38,7 +38,7 @@ #define INCLUDED_VMPRG_H #include "vmop.h" - +#include "stringbuf.h" /* the vmprg object */ typedef struct vmprg_s { @@ -56,6 +56,7 @@ BEGINinterface(vmprg) /* name must also be changed in ENDinterface macro! */ rsRetVal (*Destruct)(vmprg_t **ppThis); rsRetVal (*AddOperation)(vmprg_t *pThis, vmop_t *pOp); rsRetVal (*AddVarOperation)(vmprg_t *pThis, opcode_t opcode, var_t *pVar); + rsRetVal (*Obj2Str)(vmprg_t *pThis, cstr_t *pstr); ENDinterface(vmprg) #define vmprgCURR_IF_VERSION 1 /* increment whenever you change the interface structure! */ |