Ticket #175 (closed defect: fixed)

Opened 1 year ago

Last modified 1 year ago

GError integration missing in avahi-glib

Reported by: MathiasHasselmann Assigned to: lennart
Priority: major Milestone: Avahi 0.6.22
Component: avahi-glib Version:
Keywords: Cc:

Description

Error reporting in GObject world happens through GError objects. For consistent error handling avahi-glib should provide the following trivial functions:

GQuark avahi_glib_error_quark (void) {

return g_quark_from_static_string ("avahi-glib-error-quark");

}

GError* avahi_glib_error_new (int code) {

return g_error_new_literal (avahi_glib_error_quark (),

code, avahi_strerror (code));

}

Change History

10/26/07 16:06:07 changed by lennart

Our new gobject bindings for Avahi (that are now available in SVN and will be released with the next version of Avahi) define the quark and also properly wrap all error codes in GError.

12/16/07 19:28:30 changed by lennart

  • status changed from new to closed.
  • resolution set to fixed.
  • component changed from avahi-core to avahi-glib.
  • milestone set to Avahi 0.6.22.

I am closing this now, since this code has been available for a while in SVN.