Github User Fetcher 1.0.0
C Application with Server and GUI
|
#include <gpollableinputstream.h>
Data Fields | |
GTypeInterface | g_iface |
gboolean(* | can_poll )(GPollableInputStream *stream) |
gboolean(* | is_readable )(GPollableInputStream *stream) |
GSource *(* | create_source )(GPollableInputStream *stream, GCancellable *cancellable) |
gssize(* | read_nonblocking )(GPollableInputStream *stream, void *buffer, gsize count, GError **error) |
GPollableInputStreamInterface: @g_iface: The parent interface. @can_poll: Checks if the GPollableInputStream instance is actually pollable @is_readable: Checks if the stream is readable @create_source: Creates a GSource to poll the stream @read_nonblocking: Does a non-blocking read or returns G_IO_ERROR_WOULD_BLOCK
The interface for pollable input streams.
The default implementation of @can_poll always returns TRUE.
The default implementation of @read_nonblocking calls g_pollable_input_stream_is_readable(), and then calls g_input_stream_read() if it returns TRUE. This means you only need to override it if it is possible that your @is_readable implementation may return TRUE when the stream is not actually readable.
Since: 2.28
Definition at line 61 of file gpollableinputstream.h.
gboolean(* _GPollableInputStreamInterface::can_poll) (GPollableInputStream *stream) |
Definition at line 66 of file gpollableinputstream.h.
GSource *(* _GPollableInputStreamInterface::create_source) (GPollableInputStream *stream, GCancellable *cancellable) |
Definition at line 69 of file gpollableinputstream.h.
GTypeInterface _GPollableInputStreamInterface::g_iface |
Definition at line 63 of file gpollableinputstream.h.
gboolean(* _GPollableInputStreamInterface::is_readable) (GPollableInputStream *stream) |
Definition at line 68 of file gpollableinputstream.h.
gssize(* _GPollableInputStreamInterface::read_nonblocking) (GPollableInputStream *stream, void *buffer, gsize count, GError **error) |
Definition at line 71 of file gpollableinputstream.h.