[avahi] Removing an individual service from an entry group
Lennart Poettering
lennart at poettering.net
Thu Feb 5 06:59:08 PST 2009
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
More information about the avahi
mailing list