struct _GskDbiSynchronizedObjectIface { (* class_create) (GskDbh * dbh, GskDbiSynchronizedClassCreateCallback callback, gpointer callback_data); (* create) (GskDbiSynchronizedObject * object, GskDbh * dbh, gconstpointer create_data, GskDbiSynchronizedObjectCallback callback, gpointer callback_data); (* load) (GskDbiSynchronizedObject * object, GskDbh * dbh, gconstpointer primary_key, GskDbiSynchronizedObjectCallback callback, gpointer callback_data); (* signature) (GskDbiSynchronizedObject * object, GskDbiSynchronizedObjectDigestFunction digest_func, gpointer digest_data); (* save) (GskDbiSynchronizedObject * object, GskDbh * dbh, GskDbiSynchronizedObjectCallback callback, gpointer callback_data); (* destroy) (GskDbiSynchronizedObject * object, GskDbh * dbh, gconstpointer destroy_data, GskDbiSynchronizedObjectCallback callback, gpointer callback_data); }; |
Methods:
(* class_create) (GskDbh * dbh, GskDbiSynchronizedClassCreateCallback callback, gpointer callback_data); |
The database handle associated with the persistent store.
Callback to execute when finished. Note the callback is executed whether or not creation succeeds.
Data passed unmodified to callback.
(* create) (GskDbiSynchronizedObject * object, GskDbh * dbh, gconstpointer create_data, GskDbiSynchronizedObjectCallback callback, gpointer callback_data); |
A synchronized object of the appropriate type, constructed via gsk_gtk_object_new ().
The database handle associated with the persistent store.
Interface dependent creation data. Caller must manage this memory until the callback is executed.
Callback to execute when finished. Note the callback is executed whether or not creation succeeds.
Data passed unmodified to callback.
(* load) (GskDbiSynchronizedObject * object, GskDbh * dbh, gconstpointer primary_key, GskDbiSynchronizedObjectCallback callback, gpointer callback_data); |
A synchronized object of the appropriate type, constructed via gsk_gtk_object_new (), which is to be filled in.
The database handle associated with the persistent store.
Interface dependent load data. Caller must manage this memory until the callback is executed.
Callback to execute when finished. Note the callback is executed whether or not loading succeeds.
Data passed unmodified to callback.
(* signature) (GskDbiSynchronizedObject * object, GskDbiSynchronizedObjectDigestFunction digest_func, gpointer digest_data); |
The object to compute the signature of.
Digest function that implementations should call to update the signature.
Digest state, which implementations should pass unmodified to digest_func.
(* save) (GskDbiSynchronizedObject * object, GskDbh * dbh, GskDbiSynchronizedObjectCallback callback, gpointer callback_data); |
The object to save.
The database handle associated with the persistent store.
Callback to execute when finished. Note the callback is executed whether or not saving succeeds.
Additional data passed through unmodified.
(* destroy) (GskDbiSynchronizedObject * object, GskDbh * dbh, gconstpointer destroy_data, GskDbiSynchronizedObjectCallback callback, gpointer callback_data); |
The object to destroy. This object will have already been loaded via the load interface virtual.
The database handle associated with the persistent store.
Interface dependent destroy data. Caller must manage this memory until the callback is executed.
Callback to execute when finished. Note the callback is executed whether or not destruction succeeds.
Additional data passed through unmodified.