Hi, I am trying to port a Linux application to Windows that
highly depends on GLib. I compiled GLib with MSVC 2015. The
application uses g_poll() in a place. In g_poll() GNOME
documentation, it states that
If you need to use I will provide
some small code segments to provide you insight:
.
.
// In arv_gv_discover_socket_
#ifdef _WIN32 GIOChannel * channel = g_io_channel_win32_new_socket (discover_socket->socket); g_io_channel_win32_make_pollfd #else
socket_list->poll_fds[i].fd = g_socket_get_fd (discover_socket->socket); socket_list->poll_fds[i].events = G_IO_IN; socket_list->poll_fds[i].revents = 0; #endif .
.
// In _discover() function
arv_gv_discover_socket_list_ do { #ifdef _WIN32 // g_io_channel_win32_make _pollfd() documentation says call this
if (g_io_channel_win32_poll(socke #else
if (g_poll(socket_list->poll_fds, socket_list->n_sockets, ARV_GV_INTERFACE_DISCOVERY_ #endif { arv_gv_discover_socket_list_ return NULL; }
|
_______________________________________________ gtk-list mailing list gtk-list@xxxxxxxxx https://mail.gnome.org/mailman/listinfo/gtk-list