From 628fca916e2651faf4489394aba652d9faf63686 Mon Sep 17 00:00:00 2001 From: Douglas Clowes Date: Thu, 1 Mar 2007 09:05:29 +1100 Subject: [PATCH] Expose the MultiChan Action (Wrapper) function to allow device drivers to pass unknown actions through to this and the underlying RS232 controller. r1560 | dcl | 2007-03-01 09:05:29 +1100 (Thu, 01 Mar 2007) | 2 lines --- multichan.c | 4 ++-- multichan.h | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/multichan.c b/multichan.c index 9764ce8c..085075d0 100644 --- a/multichan.c +++ b/multichan.c @@ -267,7 +267,7 @@ int MultiChanSetTimeout(pMultiChan unit, int timeout) return old_timeout; } -static int MC_Action(SConnection *pCon, SicsInterp *pSics, +int MultiChanAction(SConnection *pCon, SicsInterp *pSics, void *pData, int argc, char *argv[]) { pMultiChanController self = (pMultiChanController) pData; @@ -377,7 +377,7 @@ int MultiChanFactory(SConnection *pCon, SicsInterp *pSics, /* create the command */ - iRet = AddCommand(pSics, argv[1], MC_Action, MC_Kill, pNew); + iRet = AddCommand(pSics, argv[1], MultiChanAction, MC_Kill, pNew); if(!iRet) { sprintf(pError,"ERROR: duplicate command %s not created", argv[1]); diff --git a/multichan.h b/multichan.h index 42b1bd08..23fce978 100644 --- a/multichan.h +++ b/multichan.h @@ -38,4 +38,8 @@ void MultiChanSetNotify(pMultiChan unit, void* context, MCC_Notify notify); int MultiChanGetTimeout(pMultiChan unit); int MultiChanSetTimeout(pMultiChan unit, int timeout); + +int MultiChanAction(SConnection *pCon, SicsInterp *pSics, + void *pData, int argc, char *argv[]); + #endif /* SICSMULTICHAN */