[avahi] Removing an individual service from an entry group

Jim Hodapp james.hodapp at gmail.com
Thu Feb 5 07:01:47 PST 2009


I was wondering if that might be true. That does make sense. Thanks  
for the reply.

Jim


On Feb 5, 2009, at 9:59 AM, Lennart Poettering wrote:

> On Thu, 05.02.09 09:28, Jim Hodapp (james.hodapp at gmail.com) wrote:
>
>> I'm writing my own little avahi-daemon since my application is an
>> embedded target. I've successfully used the avahi-core and avahi-
>> common libraries to publish a service. I've used the function
>> "avahi_server_add_service()" to add the service. If I want to
>> individually remove this service (or unpublish it), how do I
>> accomplish this? I do not seem to see a function like
>> "avahi_server_remove_service()" or the equivalent. I've tried just
>> resetting the entry group, but that seems to put things into a weird
>> state if I want my avahi-daemon clone to republish a new service in
>> the future.
>
> The point of entry groups is that all entries change state
> simultaneously -- and that includes deleting them.
>
> If you have entries whose state is manipulated independantly then you
> should have multiple entry groups.
>
> Lennart
>
> -- 
> Lennart Poettering                        Red Hat, Inc.
> lennart [at] poettering [dot] net         ICQ# 11060553
> http://0pointer.net/lennart/           GnuPG 0x1A015CC4
> _______________________________________________
> avahi mailing list
> avahi at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/avahi



More information about the avahi mailing list