Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
gpoll.h File Reference
#include <glibconfig.h>
#include <glib/gtypes.h>

Go to the source code of this file.

Data Structures

struct  _GPollFD
 

Typedefs

typedef typedefG_BEGIN_DECLS struct _GPollFD GPollFD
 
typedef gint(* GPollFunc) (GPollFD *ufds, guint nfsd, gint timeout_)
 

Functions

GLIB_AVAILABLE_IN_ALL gint g_poll (GPollFD *fds, guint nfds, gint timeout)
 

Typedef Documentation

◆ GPollFD

typedef typedefG_BEGIN_DECLS struct _GPollFD GPollFD

Definition at line 61 of file gpoll.h.

◆ GPollFunc

typedef gint(* GPollFunc) (GPollFD *ufds, guint nfsd, gint timeout_)

GPollFunc: @ufds: an array of GPollFD elements @nfsd: the number of elements in @ufds @timeout_: the maximum time to wait for an event of the file descriptors. A negative value indicates an infinite timeout.

Specifies the type of function passed to g_main_context_set_poll_func(). The semantics of the function should match those of the poll() system call.

Returns: the number of GPollFD elements which have events or errors reported, or -1 if an error occurred.

Definition at line 76 of file gpoll.h.

Function Documentation

◆ g_poll()

GLIB_AVAILABLE_IN_ALL gint g_poll ( GPollFD * fds,
guint nfds,
gint timeout )

G_POLLFD_FORMAT:

A format specifier that can be used in printf()-style format strings when printing the @fd member of a GPollFD.