static GQuark detail_for_state(AvahiEntryGroupState state) {
static struct {
- AvahiClientState state;
+ AvahiEntryGroupState state;
const gchar *name;
GQuark quark;
} states[] = {
gboolean ga_entry_group_service_remove_key(GaEntryGroupService * service,
const gchar * key, GError ** error) {
GaEntryGroupServicePrivate *priv = (GaEntryGroupServicePrivate *) service;
+ GaEntryGroupServiceEntry entry;
- g_hash_table_remove(priv->entries, key);
+ entry.value = (void*) key;
+ entry.size = strlen(key);
+
+ g_hash_table_remove(priv->entries, &entry);
if (!priv->frozen)
return ga_entry_group_service_thaw(service, error);
GaClient * client, GError ** error) {
GaEntryGroupPrivate *priv = GA_ENTRY_GROUP_GET_PRIVATE(group);
+ g_return_val_if_fail(client->avahi_client, FALSE);
g_assert(priv->client == NULL || priv->client == client);
g_assert(priv->group == NULL);