|
Data Structures
|
struct |
_GIOChannel |
struct |
_GIOFuncs |
Defines
|
#define |
G_IO_CHANNEL_ERROR g_io_channel_error_quark()
|
Typedefs
|
typedef typedefG_BEGIN_DECLS
struct _GIOChannel
|
GIOChannel |
typedef _GIOFuncs
|
GIOFuncs |
typedef gboolean(*
|
GIOFunc )(GIOChannel *source, GIOCondition condition, gpointer data)
|
Enumerations
|
enum |
GIOError { G_IO_ERROR_NONE,
G_IO_ERROR_AGAIN,
G_IO_ERROR_INVAL,
G_IO_ERROR_UNKNOWN
}
|
enum |
GIOChannelError {
G_IO_CHANNEL_ERROR_FBIG,
G_IO_CHANNEL_ERROR_INVAL,
G_IO_CHANNEL_ERROR_IO,
G_IO_CHANNEL_ERROR_ISDIR,
G_IO_CHANNEL_ERROR_NOSPC,
G_IO_CHANNEL_ERROR_NXIO,
G_IO_CHANNEL_ERROR_OVERFLOW,
G_IO_CHANNEL_ERROR_PIPE,
G_IO_CHANNEL_ERROR_FAILED
}
|
enum |
GIOStatus { G_IO_STATUS_ERROR,
G_IO_STATUS_NORMAL,
G_IO_STATUS_EOF,
G_IO_STATUS_AGAIN
}
|
enum |
GSeekType { G_SEEK_CUR,
G_SEEK_SET,
G_SEEK_END
}
|
enum |
GIOCondition {
GLIB_SYSDEF_POLLIN,
GLIB_SYSDEF_POLLOUT,
GLIB_SYSDEF_POLLPRI,
GLIB_SYSDEF_POLLERR,
GLIB_SYSDEF_POLLHUP,
GLIB_SYSDEF_POLLNVAL
}
|
enum |
GIOFlags {
G_IO_FLAG_APPEND = 1 << 0,
G_IO_FLAG_NONBLOCK = 1 << 1,
G_IO_FLAG_IS_READABLE = 1 << 2,
G_IO_FLAG_IS_WRITEABLE = 1 << 3,
G_IO_FLAG_IS_SEEKABLE = 1 << 4,
G_IO_FLAG_MASK = (1 << 5) - 1,
G_IO_FLAG_GET_MASK = G_IO_FLAG_MASK,
G_IO_FLAG_SET_MASK = G_IO_FLAG_APPEND | G_IO_FLAG_NONBLOCK
}
|
Functions
|
IMPORT_C void |
g_io_channel_init (GIOChannel *channel)
|
IMPORT_C GIOChannel *
|
g_io_channel_ref (GIOChannel *channel)
|
IMPORT_C void |
g_io_channel_unref (GIOChannel *channel)
|
IMPORT_C GIOError
|
g_io_channel_read (GIOChannel *channel, gchar *buf, gsize count, gsize *bytes_read)
|
IMPORT_C GIOError
|
g_io_channel_write (GIOChannel *channel, const gchar *buf, gsize count, gsize *bytes_written)
|
IMPORT_C GIOError
|
g_io_channel_seek (GIOChannel *channel, gint64 offset, GSeekType type)
|
IMPORT_C void |
g_io_channel_close (GIOChannel *channel)
|
IMPORT_C GIOStatus
|
g_io_channel_shutdown (GIOChannel *channel, gboolean flush, GError **err)
|
IMPORT_C guint
|
g_io_add_watch_full (GIOChannel *channel, gint priority, GIOCondition condition, GIOFunc func, gpointer user_data, GDestroyNotify notify)
|
IMPORT_C GSource *
|
g_io_create_watch (GIOChannel *channel, GIOCondition condition)
|
IMPORT_C guint
|
g_io_add_watch (GIOChannel *channel, GIOCondition condition, GIOFunc func, gpointer user_data)
|
IMPORT_C void |
g_io_channel_set_buffer_size (GIOChannel *channel, gsize size)
|
IMPORT_C gsize
|
g_io_channel_get_buffer_size (GIOChannel *channel)
|
IMPORT_C GIOCondition
|
g_io_channel_get_buffer_condition (GIOChannel *channel)
|
IMPORT_C GIOStatus
|
g_io_channel_set_flags (GIOChannel *channel, GIOFlags flags, GError **error)
|
IMPORT_C GIOFlags
|
g_io_channel_get_flags (GIOChannel *channel)
|
IMPORT_C void |
g_io_channel_set_line_term (GIOChannel *channel, const gchar *line_term, gint length)
|
IMPORT_C G_CONST_RETURN gchar *
|
g_io_channel_get_line_term (GIOChannel *channel, gint *length)
|
IMPORT_C void |
g_io_channel_set_buffered (GIOChannel *channel, gboolean buffered)
|
IMPORT_C gboolean
|
g_io_channel_get_buffered (GIOChannel *channel)
|
IMPORT_C GIOStatus
|
g_io_channel_set_encoding (GIOChannel *channel, const gchar *encoding, GError **error)
|
IMPORT_C G_CONST_RETURN gchar *
|
g_io_channel_get_encoding (GIOChannel *channel)
|
IMPORT_C void |
g_io_channel_set_close_on_unref (GIOChannel *channel, gboolean do_close)
|
IMPORT_C gboolean
|
g_io_channel_get_close_on_unref (GIOChannel *channel)
|
IMPORT_C GIOStatus
|
g_io_channel_flush (GIOChannel *channel, GError **error)
|
IMPORT_C GIOStatus
|
g_io_channel_read_line (GIOChannel *channel, gchar **str_return, gsize *length, gsize *terminator_pos, GError **error)
|
IMPORT_C GIOStatus
|
g_io_channel_read_line_string (GIOChannel *channel, GString *buffer, gsize *terminator_pos, GError **error)
|
IMPORT_C GIOStatus
|
g_io_channel_read_to_end (GIOChannel *channel, gchar **str_return, gsize *length, GError **error)
|
IMPORT_C GIOStatus
|
g_io_channel_read_chars (GIOChannel *channel, gchar *buf, gsize count, gsize *bytes_read, GError **error)
|
IMPORT_C GIOStatus
|
g_io_channel_read_unichar (GIOChannel *channel, gunichar *thechar, GError **error)
|
IMPORT_C GIOStatus
|
g_io_channel_write_chars (GIOChannel *channel, const gchar *buf, gssize count, gsize *bytes_written, GError **error)
|
IMPORT_C GIOStatus
|
g_io_channel_write_unichar (GIOChannel *channel, gunichar thechar, GError **error)
|
IMPORT_C GIOStatus
|
g_io_channel_seek_position (GIOChannel *channel, gint64 offset, GSeekType type, GError **error)
|
IMPORT_C GIOChannel *
|
g_io_channel_new_file (const gchar *filename, const gchar *mode, GError **error)
|
IMPORT_C GQuark
|
g_io_channel_error_quark (void)
|
IMPORT_C GIOChannelError
|
g_io_channel_error_from_errno (gint en)
|
IMPORT_C GIOChannel *
|
g_io_channel_unix_new (int fd)
|
IMPORT_C gint
|
g_io_channel_unix_get_fd (GIOChannel *channel)
|
Variables
|
GLIB_VAR GSourceFuncs
|
g_io_watch_funcs |