]> git.meshlink.io Git - catta/blobdiff - avahi-client/publish.h
Also accept GTK_RESPONSE_OK, _YES and _APPLY besides _ACCEPT as positive response...
[catta] / avahi-client / publish.h
index 053ea8885e1b7b02522e625c58305840f223714a..98f4f9850a79269d41520db81d1d1133dc1f323a 100644 (file)
@@ -53,7 +53,7 @@ typedef void (*AvahiEntryGroupCallback) (
 /** Create a new AvahiEntryGroup object */
 AvahiEntryGroup* avahi_entry_group_new(
     AvahiClient* c,
-    AvahiEntryGroupCallback callback /**< This callback is called whenever the state of this entry group changes. May not be NULL. */,
+    AvahiEntryGroupCallback callback /**< This callback is called whenever the state of this entry group changes. May not be NULL. Please note that this function is called for the first time from within the avahi_entry_group_new() context! Thus, in the callback you should not make use of global variables that are initialized only after your call to avahi_entry_group_new(). A common mistake is to store the AvahiEntryGroup pointer returned by avahi_entry_group_new() in a global variable and assume that this global variable already contains the valid pointer when the callback is called for the first time. A work-around for this is to always use the AvahiEntryGroup pointer passed to the callback function instead of the global pointer. */,
     void *userdata /**< This arbitrary user data pointer will be passed to the callback functon */);
 
 /** Clean up and free an AvahiEntryGroup object */