X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=docs%2FAPI-CHANGES-0.6;h=7c0844604ae1c4e37286c17543ea43732cd63557;hb=cab98272649ebd0c6b6760a1f267ca113abec02d;hp=965e521e92eb2e573d6dcf2232fdba25cda4336e;hpb=25de50ea4fc9b87efef09f44287436eb2275ebae;p=catta diff --git a/docs/API-CHANGES-0.6 b/docs/API-CHANGES-0.6 index 965e521..7c08446 100644 --- a/docs/API-CHANGES-0.6 +++ b/docs/API-CHANGES-0.6 @@ -1,7 +1,6 @@ -*-text-*- - -A terse list of API changes between 0.5.2 and 0.6: +A terse (and incomplete) list of API changes between 0.5.2 and 0.6: * Most browsing and registration functions and their callbacks gained new "flags" parameters. Passing 0 results in similar behaviour as @@ -11,11 +10,10 @@ A terse list of API changes between 0.5.2 and 0.6: * avahi-core/core.h has been split into core.h publish.h lookup.h - * avahi_client_is_service_local() has been removed. The special flags - AVAHI_LOOKUP_RESULT_LOCAL and AVAHI_LOOKUP_RESULT_OUR_OWN which are - set when resolving or browsing for - services. AVAHI_LOOKUP_RESULT_OUR_OWN is what most people should - use. + * avahi_client_is_service_local() has been removed. Use instead the special + flags AVAHI_LOOKUP_RESULT_LOCAL and AVAHI_LOOKUP_RESULT_OUR_OWN which are + set when resolving or browsing for services. AVAHI_LOOKUP_RESULT_OUR_OWN is + what most people should use. * AVAHI_RESOLVER_TIMEOUT and AVAHI_RESOLVER_NOT_FOUND have been removed. Instead AVAHI_RESOLVER_FAILURE is used and the exact error @@ -53,5 +51,24 @@ A terse list of API changes between 0.5.2 and 0.6: * The functions avahi_service_name_join() and avahi_service_name_split() have been introduced. - -$Id$ + + * AVAHI_ERR_LOCAL_COLLISION has been renamed to AVAHI_ERR_COLLSION + + * The values of AVAHI_PROTO_xxx have changed, they are no longer + identical to the BSD AF_xxx constants + + * avahi_client_new() now takes an additional flags parameter. Most + interesting flag here is AVAHI_CLIENT_NO_FAIL, which can be used to + create an AvahiClient object even when the daemon is not + running. This is useful to deal with daemon restarts. + + * AvahiClient gained a new state AVAHI_CLIENT_FAILURE. (superseding + AVAHI_CLIENT_DISCONNECTED). If this event happens, + avahi_client_errno() will return the reason. If the error returned + is AVAHI_ERR_DISCONNECTED, the situation where + AVAHI_CLIENT_DISCONNECTED was previously thrown is entered. You may + choose to reconnect in that case by freeing your AvahiClient new + and create a new one with passing AVAHI_CLIENT_NO_FAIL. + + * There's now a client side AvahiRecordBrowser, and + avahi_entry_group_add_record().