summaryrefslogtreecommitdiffstats
path: root/avahi-core/cache.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2005-10-17 22:23:16 +0000
committerLennart Poettering <lennart@poettering.net>2005-10-17 22:23:16 +0000
commit263515cd1d7b52ce2ad3dc55a93b9d6f730133f1 (patch)
tree89ac4314dea5cb976fdbffcd8eefce1d7e0222ea /avahi-core/cache.c
parent55f7dcb690bcbdf6bca6568e0d9aacb2456811a5 (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/cache.c')
-rw-r--r--avahi-core/cache.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/avahi-core/cache.c b/avahi-core/cache.c
index 23e9036..ef7293d 100644
--- a/avahi-core/cache.c
+++ b/avahi-core/cache.c
@@ -101,7 +101,7 @@ void avahi_cache_free(AvahiCache *c) {
avahi_free(c);
}
-AvahiCacheEntry *avahi_cache_lookup_key(AvahiCache *c, AvahiKey *k) {
+static AvahiCacheEntry *lookup_key(AvahiCache *c, AvahiKey *k) {
assert(c);
assert(k);
@@ -131,7 +131,7 @@ void* avahi_cache_walk(AvahiCache *c, AvahiKey *pattern, AvahiCacheWalkCallback
} else {
AvahiCacheEntry *e, *n;
- for (e = avahi_cache_lookup_key(c, pattern); e; e = n) {
+ for (e = lookup_key(c, pattern); e; e = n) {
n = e->by_key_next;
if ((ret = cb(c, pattern, e, userdata)))
@@ -153,7 +153,7 @@ static void* lookup_record_callback(AvahiCache *c, AvahiKey *pattern, AvahiCache
return NULL;
}
-AvahiCacheEntry *avahi_cache_lookup_record(AvahiCache *c, AvahiRecord *r) {
+static AvahiCacheEntry *lookup_record(AvahiCache *c, AvahiRecord *r) {
assert(c);
assert(r);
@@ -279,7 +279,7 @@ void avahi_cache_update(AvahiCache *c, AvahiRecord *r, int cache_flush, const Av
AvahiCacheEntry *e;
- if ((e = avahi_cache_lookup_record(c, r)))
+ if ((e = lookup_record(c, r)))
expire_in_one_second(c, e, AVAHI_CACHE_GOODBYE_FINAL);
} else {
@@ -290,7 +290,7 @@ void avahi_cache_update(AvahiCache *c, AvahiRecord *r, int cache_flush, const Av
/* This is an update request */
- if ((first = avahi_cache_lookup_key(c, r->key))) {
+ if ((first = lookup_key(c, r->key))) {
if (cache_flush) {
@@ -480,7 +480,7 @@ void avahi_cache_stop_poof(AvahiCache *c, AvahiRecord *record, const AvahiAddres
assert(record);
assert(a);
- if (!(e = avahi_cache_lookup_record(c, record)))
+ if (!(e = lookup_record(c, record)))
return;
/* This function is called for each response suppression