diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2008-02-29 09:14:10 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2008-02-29 09:14:10 +0000 |
commit | 4412b88148a21d54ba1c2f88ba894b6223986b9a (patch) | |
tree | 07c18ea553bf5060d2ca1b431164d5a36b725d73 /stream.c | |
parent | 3d0f49a82e46fdffd8bb2c653ccb46ddd516e112 (diff) | |
download | rsyslog-4412b88148a21d54ba1c2f88ba894b6223986b9a.tar.gz rsyslog-4412b88148a21d54ba1c2f88ba894b6223986b9a.tar.xz rsyslog-4412b88148a21d54ba1c2f88ba894b6223986b9a.zip |
changed obj base object's calling interface to use the new obj_if_t
interface structure
Diffstat (limited to 'stream.c')
-rw-r--r-- | stream.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -774,7 +774,7 @@ rsRetVal strmSerialize(strm_t *pThis, strm_t *pStrm) ISOBJ_TYPE_assert(pStrm, strm); strmFlush(pThis); - CHKiRet(objBeginSerialize(pStrm, (obj_t*) pThis)); + CHKiRet(obj.BeginSerialize(pStrm, (obj_t*) pThis)); objSerializeSCALAR(pStrm, iCurrFNum, INT); objSerializePTR(pStrm, pszFName, PSZ); @@ -793,7 +793,7 @@ rsRetVal strmSerialize(strm_t *pThis, strm_t *pStrm) l = (long) pThis->iCurrOffs; objSerializeSCALAR_VAR(pStrm, iCurrOffs, LONG, l); - CHKiRet(objEndSerialize(pStrm)); + CHKiRet(obj.EndSerialize(pStrm)); finalize_it: RETiRet; @@ -888,7 +888,9 @@ strmGetCurrOffset(strm_t *pThis, int64 *pOffs) * before anything else is called inside this class. * rgerhards, 2008-01-09 */ -BEGINObjClassInit(strm, 1) +BEGINObjClassInit(strm, 1, OBJ_IS_CORE_MODULE) + /* request objects we use */ + OBJSetMethodHandler(objMethod_SERIALIZE, strmSerialize); OBJSetMethodHandler(objMethod_SETPROPERTY, strmSetProperty); OBJSetMethodHandler(objMethod_CONSTRUCTION_FINALIZER, strmConstructFinalize); |