Commit 66dafb56c3c85853399c86ac9fb44485320425d2
1 parent
76e1e3fd
Exists in
master
and in
1 other branch
Updating socket API.
Showing
1 changed file
with
7 additions
and
0 deletions
Show diff stats
src/v3270/iocallback.c
@@ -33,6 +33,7 @@ | @@ -33,6 +33,7 @@ | ||
33 | 33 | ||
34 | static void * static_AddSource(H3270 *session, int fd, LIB3270_IO_FLAG flag, void(*proc)(H3270 *, int, LIB3270_IO_FLAG, void *), void *userdata); | 34 | static void * static_AddSource(H3270 *session, int fd, LIB3270_IO_FLAG flag, void(*proc)(H3270 *, int, LIB3270_IO_FLAG, void *), void *userdata); |
35 | static void static_RemoveSource(H3270 *session, void *id); | 35 | static void static_RemoveSource(H3270 *session, void *id); |
36 | +static void static_SetSourceState(H3270 *session, void *id, int enabled); | ||
36 | 37 | ||
37 | static void * static_AddTimeOut(H3270 *session, unsigned long interval_ms, void (*proc)(H3270 *session)); | 38 | static void * static_AddTimeOut(H3270 *session, unsigned long interval_ms, void (*proc)(H3270 *session)); |
38 | static void static_RemoveTimeOut(H3270 *session, void * timer); | 39 | static void static_RemoveTimeOut(H3270 *session, void * timer); |
@@ -62,6 +63,11 @@ static void static_RemoveSource(G_GNUC_UNUSED H3270 *session, void *id) | @@ -62,6 +63,11 @@ static void static_RemoveSource(G_GNUC_UNUSED H3270 *session, void *id) | ||
62 | g_source_destroy((GSource *) id); | 63 | g_source_destroy((GSource *) id); |
63 | } | 64 | } |
64 | 65 | ||
66 | +static void static_SetSourceState(H3270 *session, void *id, int enabled) | ||
67 | +{ | ||
68 | + | ||
69 | +} | ||
70 | + | ||
65 | static gboolean do_timer(TIMER *t) | 71 | static gboolean do_timer(TIMER *t) |
66 | { | 72 | { |
67 | if(!t->remove) | 73 | if(!t->remove) |
@@ -181,6 +187,7 @@ void v3270_register_io_handlers(G_GNUC_UNUSED v3270Class *cls) | @@ -181,6 +187,7 @@ void v3270_register_io_handlers(G_GNUC_UNUSED v3270Class *cls) | ||
181 | 187 | ||
182 | static_AddSource, | 188 | static_AddSource, |
183 | static_RemoveSource, | 189 | static_RemoveSource, |
190 | + static_SetSourceState, | ||
184 | 191 | ||
185 | static_Sleep, | 192 | static_Sleep, |
186 | static_RunPendingEvents, | 193 | static_RunPendingEvents, |