diff options
author | Lennart Poettering <lennart@poettering.net> | 2005-10-17 22:23:16 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2005-10-17 22:23:16 +0000 |
commit | 263515cd1d7b52ce2ad3dc55a93b9d6f730133f1 (patch) | |
tree | 89ac4314dea5cb976fdbffcd8eefce1d7e0222ea /avahi-core/announce.c | |
parent | 55f7dcb690bcbdf6bca6568e0d9aacb2456811a5 (diff) |
* move unicast DNS server registration/browsing routines to their own header dns-srv-rr.h
* remove some unused functions
* unexport some functions
* other cleanups
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@803 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
Diffstat (limited to 'avahi-core/announce.c')
-rw-r--r-- | avahi-core/announce.c | 23 |
1 files changed, 6 insertions, 17 deletions
diff --git a/avahi-core/announce.c b/avahi-core/announce.c index f769e98..10002b8 100644 --- a/avahi-core/announce.c +++ b/avahi-core/announce.c @@ -191,7 +191,7 @@ static void elapse_announce(AvahiTimeEvent *e, void *userdata) { next_state(userdata); } -AvahiAnnouncer *avahi_get_announcer(AvahiServer *s, AvahiEntry *e, AvahiInterface *i) { +static AvahiAnnouncer *get_announcer(AvahiServer *s, AvahiEntry *e, AvahiInterface *i) { AvahiAnnouncer *a; assert(s); @@ -254,7 +254,7 @@ static void new_announcer(AvahiServer *s, AvahiInterface *i, AvahiEntry *e) { return; /* We don't want duplicate announcers */ - if (avahi_get_announcer(s, e, i)) + if (get_announcer(s, e, i)) return; if ((!(a = avahi_new(AvahiAnnouncer, 1)))) { @@ -328,7 +328,7 @@ int avahi_entry_is_registered(AvahiServer *s, AvahiEntry *e, AvahiInterface *i) assert(i); assert(!e->dead); - if (!(a = avahi_get_announcer(s, e, i))) + if (!(a = get_announcer(s, e, i))) return 0; return @@ -345,7 +345,7 @@ int avahi_entry_is_probing(AvahiServer *s, AvahiEntry *e, AvahiInterface *i) { assert(i); assert(!e->dead); - if (!(a = avahi_get_announcer(s, e, i))) + if (!(a = get_announcer(s, e, i))) return 0; /* avahi_log_debug("state: %i", a->state); */ @@ -362,7 +362,7 @@ void avahi_entry_return_to_initial_state(AvahiServer *s, AvahiEntry *e, AvahiInt assert(e); assert(i); - if (!(a = avahi_get_announcer(s, e, i))) + if (!(a = get_announcer(s, e, i))) return; if (a->state == AVAHI_PROBING && a->entry->group) @@ -499,7 +499,7 @@ static void reannounce_walk_callback(AvahiInterfaceMonitor *m, AvahiInterface *i assert(e); assert(!e->dead); - if (!(a = avahi_get_announcer(m->server, e, i))) + if (!(a = get_announcer(m->server, e, i))) return; reannounce(a); @@ -545,14 +545,3 @@ void avahi_goodbye_entry(AvahiServer *s, AvahiEntry *e, int send_goodbye, int re remove_announcer(s, e->announcers); } -void avahi_goodbye_all(AvahiServer *s, int send_goodbye, int remove) { - AvahiEntry *e; - - assert(s); - - for (e = s->entries; e; e = e->entries_next) - if (!e->dead) - avahi_goodbye_entry(s, e, send_goodbye, remove); - -} - |