From 6c0c26dc96544aa5814d00045b3d559c99fc1b2e Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Fri, 14 Dec 2007 16:51:34 +0000 Subject: on the way to a real input module interface and threading class... --- modules.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'modules.h') diff --git a/modules.h b/modules.h index 5b745047..914a65fd 100644 --- a/modules.h +++ b/modules.h @@ -73,6 +73,9 @@ typedef struct moduleInfo { * can allocate instance memory in this call. */ rsRetVal (*createInstance)(); + /* input module specific members */ + /* TODO: do a union with members, pass pointer to msg submit function to IM rger, 2007-12-14 */ + rsRetVal (*runInput)(void); /* function to gather input and submit to queue */ union { struct {/* data for input modules */ /* input modules come after output modules are finished, I am @@ -91,7 +94,7 @@ typedef struct moduleInfo { /* prototypes */ rsRetVal doModInit(rsRetVal (*modInit)(), uchar *name, void *pModHdlr); -modInfo_t *omodGetNxt(modInfo_t *pThis); +modInfo_t *modGetNxtType(modInfo_t *pThis, eModType_t rqtdType); uchar *modGetName(modInfo_t *pThis); uchar *modGetStateName(modInfo_t *pThis); void modPrintList(void); -- cgit