Osso Addressbook Reference Manual | ||||
---|---|---|---|---|
osso-abook-waitableosso-abook-waitable — Generic interfaces for object with asynchronous initialization. |
#define OSSO_ABOOK_WAITABLE_CALLBACK (callback) void (*OssoABookWaitableCallback) (OssoABookWaitable *waitable, const GError *error, gpointer data); OssoABookWaitableIface; OssoABookWaitableClosure* osso_abook_waitable_call_when_ready (OssoABookWaitable *waitable, OssoABookWaitableCallback callback, gpointer user_data, GDestroyNotify destroy); gboolean osso_abook_waitable_cancel (OssoABookWaitable *waitable, OssoABookWaitableClosure *closure); void osso_abook_waitable_run (OssoABookWaitable *waitable, GMainContext *context, GError **error); void osso_abook_waitable_notify (OssoABookWaitable *waitable, const GError *error); void osso_abook_waitable_reset (OssoABookWaitable *waitable); gboolean osso_abook_waitable_is_ready (OssoABookWaitable *waitable, GError **error);
This interface provides a generic method for object with asynchronous initialization to inform their clients that they finished initialization.
void (*OssoABookWaitableCallback) (OssoABookWaitable *waitable, const GError *error, gpointer data);
typedef struct { } OssoABookWaitableIface;
Virtual methods of the OssoABookWaitable interface.
OssoABookWaitableClosure* osso_abook_waitable_call_when_ready (OssoABookWaitable *waitable, OssoABookWaitableCallback callback, gpointer user_data, GDestroyNotify destroy);
gboolean osso_abook_waitable_cancel (OssoABookWaitable *waitable, OssoABookWaitableClosure *closure);
void osso_abook_waitable_run (OssoABookWaitable *waitable, GMainContext *context, GError **error);
void osso_abook_waitable_notify (OssoABookWaitable *waitable, const GError *error);