add linuxFireTimer

This commit is contained in:
ehouse 2005-09-09 03:12:58 +00:00
parent 264f34d97d
commit 18fc5e2c14
2 changed files with 14 additions and 0 deletions

View file

@ -404,6 +404,17 @@ linux_util_makeStreamFromAddr( XW_UtilCtxt* uctx, XP_U16 channelNo )
} /* linux_util_makeStreamFromAddr */
#endif
void
linuxFireTimer( CommonGlobals* cGlobals, XWTimerReason why )
{
TimerProc proc = cGlobals->timerProcs[why];
void* closure = cGlobals->timerClosures[why];
cGlobals->timerProcs[why] = NULL;
(*proc)( closure, why );
} /* fireTimer */
static DictionaryCtxt*
linux_util_makeEmptyDict( XW_UtilCtxt* uctx )
{

View file

@ -42,6 +42,9 @@ XP_S16 linux_tcp_send( XP_U8* buf, XP_U16 buflen, const CommsAddrRec* addrRec,
int linux_init_socket( CommonGlobals* cGlobals );
int linux_receive( CommonGlobals* cGlobals, unsigned char* buf, int bufSize );
void linuxFireTimer( CommonGlobals* cGlobals, XWTimerReason why );
XWStreamCtxt* stream_from_msgbuf( CommonGlobals* cGlobals, char* bufPtr,
XP_U16 nBytes );
XP_UCHAR* linux_getErrString( UtilErrID id );