Ticket #175 (closed defect: fixed)

Opened 6 years ago

Last modified 6 years ago

GError integration missing in avahi-glib

Reported by: MathiasHasselmann Owned by: lennart
Milestone: Avahi 0.6.22 Component: avahi-glib
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

Changed 6 years ago 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.

Changed 6 years ago 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.

Note: See TracTickets for help on using tickets.