devilutionX/Source/dthread.h
2020-04-22 13:15:29 +02:00

31 lines
603 B
C

/**
* @file dthread.h
*
* Interface of functions for updating game state from network commands.
*/
#ifndef __DTHREAD_H__
#define __DTHREAD_H__
DEVILUTION_BEGIN_NAMESPACE
#ifdef __cplusplus
extern "C" {
#endif
extern SDL_threadID glpDThreadId;
extern BOOLEAN dthread_running;
void dthread_remove_player(int pnum);
void dthread_send_delta(int pnum, char cmd, void *pbSrc, int dwLen);
void dthread_start();
unsigned int dthread_handler(void *data);
void dthread_cleanup();
/* data */
#ifdef __cplusplus
}
#endif
DEVILUTION_END_NAMESPACE
#endif /* __DTHREAD_H__ */