GNOME Bugzilla – Bug 347931
EBook async API is has weird return type
Last modified: 2013-09-10 13:42:22 UTC
The EBook async API is of this form: guint e_book_async_get_contact (EBook *book, const char *id, EBookContactCallback cb, gpointer closure) For a long time I thought that the guint return value was an operation ID. Then the API docs were updated and I see this on every async method: * Return value: %TRUE if the operation was started, %FALSE otherwise. Surely the return value of the async method calls should be a gboolean...
Or alternatively the API could be extended so that they are operation IDs and e_book_cancel would take them and cancel a specified operation rather than just pending ones. But Ross's suggestion is the easier option :)
The correct return type, gboolean, is a typedef of gint, so I don't think this would cause any ABI breakages.
Bumping version to a stable release.
EBook is deprecated in favor of EBookClient, which has a proper async API. Closing this OBSOLETE.