mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-29 08:34:37 +01:00
add linuxFireTimer
This commit is contained in:
parent
264f34d97d
commit
18fc5e2c14
2 changed files with 14 additions and 0 deletions
|
@ -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 )
|
||||
{
|
||||
|
|
|
@ -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 );
|
||||
|
|
Loading…
Add table
Reference in a new issue