mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-12 00:30:19 +00:00
add wdk changes to named branch
This commit is contained in:
@@ -1,29 +1 @@
|
||||
|
||||
typedef int (*socket_callback) (void *source, int condition, void *user_data);
|
||||
typedef int (*timer_callback) (void *user_data);
|
||||
|
||||
struct socketeventRec
|
||||
{
|
||||
socket_callback callback;
|
||||
void *userdata;
|
||||
int sok;
|
||||
int tag;
|
||||
int rread:1;
|
||||
int wwrite:1;
|
||||
int eexcept:1;
|
||||
int checked:1;
|
||||
};
|
||||
|
||||
typedef struct socketeventRec socketevent;
|
||||
|
||||
|
||||
struct timerRec
|
||||
{
|
||||
timer_callback callback;
|
||||
void *userdata;
|
||||
int interval;
|
||||
int tag;
|
||||
guint64 next_call; /* miliseconds */
|
||||
};
|
||||
|
||||
typedef struct timerRec timerevent;
|
||||
GMainLoop *main_loop;
|
||||
|
||||
Reference in New Issue
Block a user