diff options
author | Tor Lillqvist <tml@iki.fi> | 2000-08-27 10:53:36 +0000 |
---|---|---|
committer | Tor Lillqvist <tml@src.gnome.org> | 2000-08-27 10:53:36 +0000 |
commit | 3d0a1b3b221d32a53557a3512ab6eeadbf816352 (patch) | |
tree | d2ca82c09d07caa083af5cc359fd33c1769e94bd /glib.h | |
parent | a435aaff030e440c910d76f354f0e2157545b33e (diff) |
New function, otherwise like g_io_channel_win32_wait_for_condition(), but
2000-08-27 Tor Lillqvist <tml@iki.fi>
* giowin32.c (g_io_channel_win32_poll): New function, otherwise
like g_io_channel_win32_wait_for_condition(), but accept several
GIOChannels.
(g_io_channel_win32_wait_for_condition): Call
g_io_channel_win32_poll().
* glib.h: Declare g_io_channel_win32_poll().
* gwin32.c (g_win32_error_message): Don't believe return value
from FormatMessage.
Diffstat (limited to 'glib.h')
-rw-r--r-- | glib.h | 19 |
1 files changed, 10 insertions, 9 deletions
@@ -2921,20 +2921,21 @@ gint g_io_channel_unix_get_fd (GIOChannel *channel); #define G_WIN32_MSG_HANDLE 19981206 -/* This can be used to wait until a channel is readable. On Unix you - * would do a select() on the fd of the channel. This should probably - * be replaced by something for all platforms? +/* This can be used to wait a until at least one of the channels is readable. + * On Unix you would do a select() on the file descriptors of the channels. + * This should probably be available for all platforms? */ -gint g_io_channel_win32_wait_for_condition (GIOChannel *channel, - GIOCondition condition, - gint timeout); +gint g_io_channel_win32_poll (GIOChannel **channels, + gint n_channels, + GIOCondition condition, + gint timeout); /* This is used to add polling for Windows messages. GDK (GTk+) programs * should *not* use this. */ -void g_main_poll_win32_msg_add(gint priority, - GPollFD *fd, - guint hwnd); +void g_main_poll_win32_msg_add (gint priority, + GPollFD *fd, + guint hwnd); /* An IO channel for Windows messages for window handle hwnd. */ GIOChannel *g_io_channel_win32_new_messages (guint hwnd); |