gpoll: introduce new ghandle type

We've long discussed having a ghandle type corresponding to HANDLE on windows
and an int (fd) elsewhere.  Let's add that now.

We continue to maintain the 'fd' field as being an integer on Windows in order
to avoid warnings about implicit casts in existing software.  'ghandleint' was
introduced for that purpose.
This commit is contained in:
Ryan Lortie
2014-12-18 13:23:05 -05:00
parent 0dce44800b
commit 19499579f9
3 changed files with 61 additions and 7 deletions

View File

@@ -544,6 +544,10 @@ g_child_watch_add
g_child_watch_add_full
<SUBSECTION>
ghandle
ghandleint
%G_HANDLE_NULL
g_handle_is_valid
GPollFD
g_poll
G_POLLFD_FORMAT