diff options
Diffstat (limited to 'module-template.h')
-rw-r--r-- | module-template.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/module-template.h b/module-template.h index a9535428..758e9710 100644 --- a/module-template.h +++ b/module-template.h @@ -376,6 +376,8 @@ static rsRetVal queryEtryPt(uchar *name, rsRetVal (**pEtryPoint)())\ CODEqueryEtryPt_STD_MOD_QUERIES \ else if(!strcmp((char*) name, "runInput")) {\ *pEtryPoint = runInput;\ + } else if(!strcmp((char*) name, "getTermSyncType")) {\ + *pEtryPoint = modGetTermSyncType;\ } /* modInit() @@ -467,6 +469,16 @@ static rsRetVal runInput(void)\ return iRet;\ } +/* method to return which termination sync method is used by this module. + */ +#define TERM_SYNC_TYPE(x) \ +static rsRetVal modGetTermSyncType(eTermSyncType_t *pTermSync)\ +{\ + assert(pTermSync != NULL); \ + *pTermSync = (x);\ + return RS_RET_OK;\ +} + /* * vi:set ai: */ |