_PurpleEventLoopUiOps Struct Reference


Data Fields

guint(* timeout_add )(guint interval, GSourceFunc function, gpointer data)
 Creates a callback timer with an interval measured in milliseconds.
gboolean(* timeout_remove )(guint handle)
 Removes a callback timer.
guint(* input_add )(int fd, PurpleInputCondition cond, PurpleInputFunction func, gpointer user_data)
 Adds an input handler.
gboolean(* input_remove )(guint handle)
 Removes an input handler.
int(* input_get_error )(int fd, int *error)
 Get the current error status for an input.
guint(* timeout_add_seconds )(guint interval, GSourceFunc function, gpointer data)
 Creates a callback timer with an interval measured in seconds.
void(* _purple_reserved2 )(void)
void(* _purple_reserved3 )(void)
void(* _purple_reserved4 )(void)

Detailed Description

Definition at line 49 of file eventloop.h.


Field Documentation

guint(* _PurpleEventLoopUiOps::timeout_add)(guint interval, GSourceFunc function, gpointer data)

Creates a callback timer with an interval measured in milliseconds.

See also:
g_timeout_add, purple_timeout_add

gboolean(* _PurpleEventLoopUiOps::timeout_remove)(guint handle)

Removes a callback timer.

See also:
purple_timeout_remove, g_source_remove

guint(* _PurpleEventLoopUiOps::input_add)(int fd, PurpleInputCondition cond, PurpleInputFunction func, gpointer user_data)

Adds an input handler.

See also:
purple_input_add, g_io_add_watch_full

gboolean(* _PurpleEventLoopUiOps::input_remove)(guint handle)

Removes an input handler.

See also:
purple_input_remove, g_source_remove

int(* _PurpleEventLoopUiOps::input_get_error)(int fd, int *error)

Get the current error status for an input.

Implementation of this UI op is optional. Implement it if the UI's sockets or event loop needs to customize determination of socket error status.

See also:
purple_input_get_error, getsockopt

guint(* _PurpleEventLoopUiOps::timeout_add_seconds)(guint interval, GSourceFunc function, gpointer data)

Creates a callback timer with an interval measured in seconds.

This allows UIs to group timers for better power efficiency. For this reason, interval may be rounded by up to a second.

Implementation of this UI op is optional. If it's not implemented, calls to purple_timeout_add_seconds() will be serviced by the timeout_add UI op.

See also:
g_timeout_add_seconds, purple_timeout_add_seconds()


The documentation for this struct was generated from the following file: