summaryrefslogtreecommitdiffstats
path: root/avahi-compat-howl
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2005-11-08 21:56:28 +0000
committerLennart Poettering <lennart@poettering.net>2005-11-08 21:56:28 +0000
commit6ecd227ceadc32ed229246aa61df6361c7b58a95 (patch)
tree95a9f35ccc096839faba3aa22afe07e9743d18a3 /avahi-compat-howl
parent0d787cfca3b6e2c0755a54ca732a85e15756aa57 (diff)
* add new flags parameter to avahi_client_new()
* introduce flags AVAHI_CLIENT_NO_FAIL and AVAHI_CLIENT_IGNORE_USER_CONFIG * beef up avahi-browse to show how AVAHI_CLIENT_NO_FAIL may be used: add a new parameter "-f" which tells avahi-browse to stay running when the daemon disconnects from DBUS and reconnect when it reappears. For now dbus-daemon restarts are not handled and result in an AVAHI_CLIENT_FAIL event. git-svn-id: file:///home/lennart/svn/public/avahi/trunk@937 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
Diffstat (limited to 'avahi-compat-howl')
-rw-r--r--avahi-compat-howl/compat.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/avahi-compat-howl/compat.c b/avahi-compat-howl/compat.c
index 12f22fa..a7e2809 100644
--- a/avahi-compat-howl/compat.c
+++ b/avahi-compat-howl/compat.c
@@ -380,7 +380,7 @@ sw_result sw_discovery_init(sw_discovery * self) {
avahi_simple_poll_set_func((*self)->simple_poll, poll_func, *self);
- if (!((*self)->client = avahi_client_new(avahi_simple_poll_get((*self)->simple_poll), client_callback, *self, &error))) {
+ if (!((*self)->client = avahi_client_new(avahi_simple_poll_get((*self)->simple_poll), 0, client_callback, *self, &error))) {
result = map_error(error);
goto fail;
}
@@ -716,6 +716,7 @@ static void reg_client_callback(oid_data *data, AvahiClientState state) {
avahi_entry_group_reset(data->object);
break;
+ case AVAHI_CLIENT_CONNECTING:
case AVAHI_CLIENT_S_REGISTERING:
/* Ignore */
break;