Replace {Log,Kill}Capture with a more generic hook.

This commit is contained in:
Douglas Clowes
2014-04-03 12:35:01 +11:00
parent 7e6b5a3a9f
commit 0e0fd86da0
3 changed files with 147 additions and 93 deletions

View File

@@ -31,8 +31,7 @@ void SICSLogTimePrintf(OutCode eOut, struct timeval *tp, const char *fmt,
...) G_GNUC_PRINTF (3, 4);
#undef G_GNUC_PRINTF
void SICSLogEnable(int flag);
int KillCapture(SConnection * pCon);
int LogCapture(SConnection * pCon, SicsInterp * pInter, void *pData,
int argc, char *argv[]);
typedef void (*pSICSLogHook)(const char *pText, OutCode eOut, void *pData);
char *AddSICSLogHook(pSICSLogHook func, const char *pCodes, void *pData);
char *RemSICSLogHook(void *pData);
#endif