diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2008-02-21 14:31:56 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2008-02-21 14:31:56 +0000 |
commit | 45136c665690534d934d0c0c188dbb18a0131b96 (patch) | |
tree | 50e774280a622de5dfc8b98707f0be6324aeb974 /var.c | |
parent | 04622f7d2210cbb8036502afadf5bcdcb0394d28 (diff) | |
download | rsyslog-45136c665690534d934d0c0c188dbb18a0131b96.tar.gz rsyslog-45136c665690534d934d0c0c188dbb18a0131b96.tar.xz rsyslog-45136c665690534d934d0c0c188dbb18a0131b96.zip |
some more interface changes
Diffstat (limited to 'var.c')
-rw-r--r-- | var.c | 21 |
1 files changed, 19 insertions, 2 deletions
@@ -102,8 +102,7 @@ varUnsetValues(var_t *pThis) } -/* set a string value - */ +/* set a string value */ static rsRetVal varSetString(var_t *pThis, cstr_t *pCStr) { @@ -120,6 +119,23 @@ finalize_it: } +/* set an int64 value */ +static rsRetVal +varSetInt64(var_t *pThis, int64 iVal) +{ + DEFiRet; + + ISOBJ_TYPE_assert(pThis, var); + + CHKiRet(varUnsetValues(pThis)); + pThis->varType = VARTYPE_INT64; + pThis->val.vInt64 = iVal; + +finalize_it: + RETiRet; +} + + /* queryInterface function * rgerhards, 2008-02-21 */ @@ -140,6 +156,7 @@ CODESTARTobjQueryInterface(var) pIf->ConstructFinalize = varConstructFinalize; pIf->Destruct = varDestruct; pIf->DebugPrint = varDebugPrint; + pIf->SetInt64 = varSetInt64; pIf->SetString = varSetString; finalize_it: ENDobjQueryInterface(var) |