summaryrefslogtreecommitdiffstats
path: root/obj.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-01-09 17:25:07 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2008-01-09 17:25:07 +0000
commitaa7e00d8e1a1d67fa2860623ffab75bd387faffc (patch)
treebf8d5fbf99050a010c1918d8a3a1168cdb43fe84 /obj.h
parentfd8c6452c8a4d51d39eb511046fca09391138a22 (diff)
downloadrsyslog-aa7e00d8e1a1d67fa2860623ffab75bd387faffc.tar.gz
rsyslog-aa7e00d8e1a1d67fa2860623ffab75bd387faffc.tar.xz
rsyslog-aa7e00d8e1a1d67fa2860623ffab75bd387faffc.zip
changed queue class to use stream class
Diffstat (limited to 'obj.h')
-rw-r--r--obj.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/obj.h b/obj.h
index 0b97718e..0c24c279 100644
--- a/obj.h
+++ b/obj.h
@@ -125,6 +125,16 @@ typedef struct serialStore_s {
if(pThis != NULL) \
free(pThis); \
}
+
+#define DEFpropSetMeth(obj, prop, dataType)\
+ rsRetVal obj##Set##prop(obj##_t *pThis, dataType pVal)\
+ { \
+ pThis->prop = pVal; \
+ return RS_RET_OK; \
+ }
+#define PROTOTYPEpropSetMeth(obj, prop, dataType)\
+ rsRetVal obj##Set##prop(obj##_t *pThis, dataType pVal)
+
#define objSerializeSCALAR(propName, propType) \
CHKiRet(objSerializeProp(pCStr, (uchar*) #propName, PROPTYPE_##propType, (void*) &pThis->propName));
#define objSerializePTR(propName, propType) \