}
gboolean
-test_free (gpointer data)
+test_free_domain_browser (gpointer data)
{
- printf ("XXX: freeing\n");
+ printf ("XXX: freeing domain browser\n");
AvahiServiceBrowser *b = data;
avahi_service_browser_free (b);
return FALSE;
}
+gboolean
+test_free_entry_group (gpointer data)
+{
+ printf ("XXX: freeing entry group\n");
+ AvahiEntryGroup *g = data;
+ avahi_entry_group_free (g);
+ return FALSE;
+}
int
main (int argc, char *argv[])
{
else
printf ("Sucessfully created service browser, path %s\n", avahi_service_browser_path (sb));
- g_timeout_add (2000, test_free, sb);
+ g_timeout_add (2000, test_free_entry_group, group);
+ g_timeout_add (5000, test_free_domain_browser, sb);
g_main_loop_run (loop);
return avahi_client_set_errno (client, AVAHI_ERR_DBUS_ERROR);
dbus_connection_send (client->bus, message, NULL);
+
+ AVAHI_LLIST_REMOVE(AvahiEntryGroup, groups, client->groups, group);
free (group);