diff options
Diffstat (limited to 'runtime/module-template.h')
-rw-r--r-- | runtime/module-template.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/runtime/module-template.h b/runtime/module-template.h index 2fa8e2e2..6238d0f4 100644 --- a/runtime/module-template.h +++ b/runtime/module-template.h @@ -321,10 +321,10 @@ finalize_it:\ * placed right after CODESTARTnewActInst. */ #define BEGINnewActInst \ -static rsRetVal newActInst(struct nvlst *lst, void **ppModData, omodStringRequest_t **ppOMSR)\ +static rsRetVal newActInst(uchar __attribute__((unused)) *modName, \ + struct nvlst *lst, void **ppModData, omodStringRequest_t **ppOMSR)\ {\ DEFiRet;\ - uchar *p;\ instanceData *pData = NULL; #define CODESTARTnewActInst \ @@ -537,6 +537,15 @@ static rsRetVal queryEtryPt(uchar *name, rsRetVal (**pEtryPoint)())\ } \ CODEqueryEtryPt_STD_CONF2_CNFNAME_QUERIES +/* the following block is to be added for output modules that support the v2 + * config system. The config name is also provided. + */ +#define CODEqueryEtryPt_STD_CONF2_OMOD_QUERIES \ + else if(!strcmp((char*) name, "newActInst")) {\ + *pEtryPoint = newActInst;\ + } \ + CODEqueryEtryPt_STD_CONF2_CNFNAME_QUERIES + /* the following block is to be added for modules that require * pre priv drop activation support. |