GIOFuncs

A table of functions used to handle different types of GIOChannel in a generic way. io_read () reads raw bytes from the channel. This is called from various functions such as g_io_channel_read_chars() to read raw bytes from the channel. Encoding and buffering issues are dealt with at a higher level. io_write () writes raw bytes to the channel. This is called from various functions such as g_io_channel_write_chars() to write raw bytes to the channel. Encoding and buffering issues are dealt with at a higher level. io_seek () (optional) seeks the channel. This is called from g_io_channel_seek() on channels that support it. io_close () closes the channel. This is called from g_io_channel_close() after flushing the buffers. io_create_watch () creates a watch on the channel. This call corresponds directly to g_io_create_watch(). io_free () called from g_io_channel_unref() when the channel needs to be freed. This function must free the memory associated with the channel, including freeing the GIOChannel structure itself. The channel buffers have been flushed and possibly io_close has been called by the time this function is called. io_set_flags () sets the GIOFlags on the channel. This is called from g_io_channel_set_flags() with all flags except for G_IO_FLAG_APPEND and G_IO_FLAG_NONBLOCK masked out. io_get_flags () gets the GIOFlags for the channel. This function need only return the G_IO_FLAG_APPEND and G_IO_FLAG_NONBLOCK flags; g_io_channel_get_flags() automatically adds the others as appropriate.

Members

Variables

ioClose
GIOStatus function(GIOChannel* channel, GError** err) ioClose;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
ioCreateWatch
GSource* function(GIOChannel* channel, GIOCondition condition) ioCreateWatch;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
ioFree
void function(GIOChannel* channel) ioFree;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
ioGetFlags
GIOFlags function(GIOChannel* channel) ioGetFlags;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
ioRead
GIOStatus function(GIOChannel* channel, char* buf, gsize count, gsize* bytesRead, GError** err) ioRead;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
ioSeek
GIOStatus function(GIOChannel* channel, long offset, GSeekType type, GError** err) ioSeek;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
ioSetFlags
GIOStatus function(GIOChannel* channel, GIOFlags flags, GError** err) ioSetFlags;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
ioWrite
GIOStatus function(GIOChannel* channel, char* buf, gsize count, gsize* bytesWritten, GError** err) ioWrite;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.

Meta