osso-abook-waitable

osso-abook-waitable — Generic interfaces for object with asynchronous initialization.

Synopsis

#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);

Description

This interface provides a generic method for object with asynchronous initialization to inform their clients that they finished initialization.

Details

OSSO_ABOOK_WAITABLE_CALLBACK()

#define             OSSO_ABOOK_WAITABLE_CALLBACK(callback)

OssoABookWaitableCallback ()

void                (*OssoABookWaitableCallback)        (OssoABookWaitable *waitable,
                                                         const GError *error,
                                                         gpointer data);

OssoABookWaitableIface

typedef struct {
} OssoABookWaitableIface;

Virtual methods of the OssoABookWaitable interface.


osso_abook_waitable_call_when_ready ()

OssoABookWaitableClosure* osso_abook_waitable_call_when_ready
                                                        (OssoABookWaitable *waitable,
                                                         OssoABookWaitableCallback callback,
                                                         gpointer user_data,
                                                         GDestroyNotify destroy);

osso_abook_waitable_cancel ()

gboolean            osso_abook_waitable_cancel          (OssoABookWaitable *waitable,
                                                         OssoABookWaitableClosure *closure);

osso_abook_waitable_run ()

void                osso_abook_waitable_run             (OssoABookWaitable *waitable,
                                                         GMainContext *context,
                                                         GError **error);

osso_abook_waitable_notify ()

void                osso_abook_waitable_notify          (OssoABookWaitable *waitable,
                                                         const GError *error);

osso_abook_waitable_reset ()

void                osso_abook_waitable_reset           (OssoABookWaitable *waitable);

osso_abook_waitable_is_ready ()

gboolean            osso_abook_waitable_is_ready        (OssoABookWaitable *waitable,
                                                         GError **error);