summaryrefslogtreecommitdiffstats
path: root/avahi-client
Commit message (Collapse)AuthorAgeFilesLines
* reverse 1144, since it broke more things than it fixedLennart Poettering2006-02-203-9/+9
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1151 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* make anonymous structs appear properly in doxygenLennart Poettering2006-02-173-9/+9
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1144 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* doxygen updateLennart Poettering2006-01-301-4/+14
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1119 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* Update doxygen docs for publishing a littleLennart Poettering2006-01-281-35/+41
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1115 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* fix entry group destruction (closes #5)Lennart Poettering2006-01-271-1/+1
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1110 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* add doxygen \since tagsLennart Poettering2006-01-201-1/+1
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1093 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * add new API function avahi_nss_support()Lennart Poettering2006-01-204-1/+104
| | | | | | | | * add new DBUS method Server.IsNSSSupportAvailable() * add support for IsNSSSupportAvailabke() to avahi-bookmarks git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1092 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* small fix that speeds up destruction of AvahiClient objects. We will now ↵Lennart Poettering2006-01-201-4/+9
| | | | | | simply terminate the DBUS connection before freeing local objects. This way the number of server calls is decreased. The server will clean up the client objects anyway if the connection is closed, hence there is no need to do that manually from the client side. git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1090 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* remove a stupid fprintf() lineLennart Poettering2005-12-071-1/+1
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1039 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* don't build static library for dbus-watch-glue and the like, instead compile ↵Lennart Poettering2005-11-241-2/+4
| | | | | | the sources directly where it is needed git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1028 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* Add DBUS API versioningLennart Poettering2005-11-241-9/+43
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1027 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* Map DBUS specific errors to Avahi counterpartsLennart Poettering2005-11-241-2/+7
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1026 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* in the domain browser objects: don't return statically configured browsing ↵Lennart Poettering2005-11-231-1/+1
| | | | | | domains when the user asked for registration domains git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1022 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* small doxygen fixLennart Poettering2005-11-161-2/+2
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@986 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * Implement client API for arbitrary record browsingLennart Poettering2005-11-167-6/+461
| | | | | | | * Fix memory leak in avahi-client git-svn-id: file:///home/lennart/svn/public/avahi/trunk@984 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * Make "NameAcquired" warning line disappear in avahi-clientLennart Poettering2005-11-131-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Scheduler tweaks: * Add some more comments * Remove scheduled queries from the query queue if the querier which issued them dies. This reduces traffic immensly when many short lived queries are made, e.g. during host name lookups. * Don't free a querier object immediately when it is no longer referenced. Instead keep it and try to recycle it in case someone else wants to do the same query later on. Free it at the latest moment possible: just before the next query is scheduled to be made. This reduces traffic immensly when many short lived queries are made. With these two changes we can minimize the traffic to zero or near zero for many simple lookups. * When responding records with the FLUSH_CACHE bit set, reply immediately only when all response record have this bit set. Prior to this change we replied imediately as soon as one record hat this bit set. This change should make us pass *all* Bonjour mDNS conformance tests without any exceptions. git-svn-id: file:///home/lennart/svn/public/avahi/trunk@954 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * add new flags parameter to avahi_client_new()Lennart Poettering2005-11-088-93/+155
| | | | | | | | | | | * 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
* * Rename AVAHI_ERR_NOT_CONNECTED to AVAHI_ERR_DISCONNECTEDLennart Poettering2005-11-065-36/+37
| | | | | | | * Remove client state AVAHI_CLIENT_DISCONNECTED and replace it with AVAHI_CLIENT_FAILURE with error code set to AVAHI_ERR_DISCONNECTED git-svn-id: file:///home/lennart/svn/public/avahi/trunk@935 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* add new client state AVAHI_CLIENT_FAILURELennart Poettering2005-11-062-4/+6
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@931 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * add two new configuration file options: "disable-publishing" and ↵Lennart Poettering2005-11-061-5/+3
| | | | | | | | | | | "disable-user-service-publishing" * add two new errors: NOT_PERMITTED and NOT_SUPPORTED * add two new publishing flags: AVAHI_PUBLISH_USE_MULTICAST, AVAHI_PUBLISH_USE_WIDE_AREA * return NOT_SUPPORTED when user tries to add RRs in wide area domains - for now git-svn-id: file:///home/lennart/svn/public/avahi/trunk@930 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * look for additional browsing dmains in $AVAHI_BROWSE_DOMAINS on the client ↵Lennart Poettering2005-11-052-1/+106
| | | | | | | | | side * the same for the XDG config file ~/.config/avah/browse-domains git-svn-id: file:///home/lennart/svn/public/avahi/trunk@928 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* implement XDG basedir subset, which we will use to read user configured ↵Lennart Poettering2005-11-044-2/+141
| | | | | | browser domains from git-svn-id: file:///home/lennart/svn/public/avahi/trunk@927 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* remove a bunch of compiler warningsLennart Poettering2005-10-271-2/+2
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@898 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* change rdata type from "uint8_t*" to "const void*"Lennart Poettering2005-10-272-3/+3
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@897 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * avahi-daemon: Implement EntryGroup::AddRecord for arbitrary record additionsTrent Lloyd2005-10-273-0/+114
| | | | | | | * avahi-client: Wrap AddRecord, add simple test to client-test git-svn-id: file:///home/lennart/svn/public/avahi/trunk@890 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* install publish.h, lookup.hLennart Poettering2005-10-271-1/+1
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@887 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* distribute publish.h lookup.hLennart Poettering2005-10-261-1/+2
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@884 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * avahi-utils: replace python avahi-browse with a version written in C.Lennart Poettering2005-10-264-34/+30
| | | | | | | | | | | * remove -Wunused from GCC command line and use "unused" attribute instead * remove AVAHI_CLIENT_S_FAILURE and AVAHI_CLIENT_S_INVALID since these event's are never forwarded to the client anyway * make use of AVAHI_GCC_NORETURN * really send eror code with StateChange DBUS signals * ignore EINTR in avahi_simple_poll_loop() git-svn-id: file:///home/lennart/svn/public/avahi/trunk@879 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * remove lots of DOXYGEN_SHOULD_SKIP_THIS from the header files, use doxygen ↵Lennart Poettering2005-10-263-13/+0
| | | | | | | | | | macro expansion instead * split of exotic functions from avahi-core/rr.h to avahi-core/rr-util.h * update doxygen docs git-svn-id: file:///home/lennart/svn/public/avahi/trunk@872 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * replace AF_UNSPEC by AVAHI_PROTO_UNSPEC in client-test.cLennart Poettering2005-10-251-3/+1
| | | | | | | | | * remove some functions from the public API in avahi-common/{domain,address}.[ch] and move them into avahi-core/{domain-util,add-util}.[ch] * properly generate CNAME responses * add some more comments to server.c git-svn-id: file:///home/lennart/svn/public/avahi/trunk@871 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * add new entry group state AVAHI_ENTRY_GROUP_FAILURELennart Poettering2005-10-242-4/+22
| | | | | | | | | | | | * pass error code alongside entry gorup state changes over DBUS * add new server state AVAHI_SERVER_FAILURE * pass error code alongside server state changes over DBUS * fix client-publish-service * rename error code AVAHI_ERR_LOCAL_COLLISION to AVAHI_ERR_COLLISION * update TODO git-svn-id: file:///home/lennart/svn/public/avahi/trunk@854 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * Compile tests only when --enable-tests was specified on the configure ↵Lennart Poettering2005-10-191-0/+4
| | | | | | | | | | | | | command line * Build compat layers only when --enable-compat-{howl,libdns_sd} was passed to configure * drop avahi_strlcpy() to reduce our code/API size * replace getifname() with if_indextoname in avahi-dnsconfd * declare environ if needed in avahi-dnsconfd * drop some useless definitions like AVAHI_PUBLISH_NULL = 0 git-svn-id: file:///home/lennart/svn/public/avahi/trunk@819 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* in order to reduce our API size, dropping ↵Lennart Poettering2005-10-182-66/+4
| | | | | | avahi_entry_group_add_service_va(), avahi_entry_group_update_service_txt_va(), avahi_server_add_service_va(, avahi_server_update_service_txt_va() git-svn-id: file:///home/lennart/svn/public/avahi/trunk@815 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * remove AVAHI_PUBLISH_IS_PROXY, it was a bad ideaLennart Poettering2005-10-188-130/+126
| | | | | | | | | | | * drop avahi_service_is_service_local(), avahi_client_is_service_local() * add new lookup result flags AVAHI_LOOKUP_RESULT_OUR_OWN and AVAHI_LOOKUP_RESULT_LOCAL * remove avahi_address_resolver_new() and replace it by avahi_address_resolver_new_a() * avahi-client: save query data in browse/resolve objects so that we can return it on failure * other cleanups git-svn-id: file:///home/lennart/svn/public/avahi/trunk@811 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * Add custom user-specific configure flags to bootstrap.shTrent Lloyd2005-10-174-2/+119
| | | | | | | | | | | | * Add new constant AVAHI_ADDRESS_STR_MAX for use with avahi_address_snprint arr ays * Update all our code to use AVAHI_ADDRESS_STR_MAX * Add avahi_client_add_address to avahi-client * Add avahi_client_add_address test to avahi-client git-svn-id: file:///home/lennart/svn/public/avahi/trunk@800 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * split client.h into client.h, lookup.h and publish.h just like we did on ↵Lennart Poettering2005-10-177-302/+578
| | | | | | | | | | | | the server side * Wrap avahi_server_update_txt() as DBUS function UpdateServiceTxt * Add client side API avahi_entry_group_update_service_txt() and friends * handle AVAHI_PUBLISH_UPDATE semantics in DBUS protocol * minor cleanups git-svn-id: file:///home/lennart/svn/public/avahi/trunk@791 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* cleanup of adresss parsing on the client sideLennart Poettering2005-10-131-2/+3
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@758 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* Do not fail if address cannot be parsed - it is probably ↵Jakub Stachowski2005-10-131-4/+1
| | | | | | AVAHI_LOOKUP_NO_ADDRESS case git-svn-id: file:///home/lennart/svn/public/avahi/trunk@757 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * handle AVAHI_LOOKUP_NO_ADDRESS over DBUS correctlyLennart Poettering2005-10-131-0/+3
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@755 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * drop AVAHI_RESOLVER_TIMEOUT, AVAHI_RESOLVER_NOT_FOUND and ↵Lennart Poettering2005-10-124-186/+291
| | | | | | | | | | | AVAHI_BROWSER_NOT_FOUND, use AVAHI_xxx_FAILURE instead * set the client/server errno variable when AVAHI_xxx_FAILURE happens * update DBUS interface accordingly, pass errno value with Failure events * Pass DNS return codes to the app by wrapping them in avahi error codes git-svn-id: file:///home/lennart/svn/public/avahi/trunk@732 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* add client side wrapping of EntryGroup.AddServiceSubtypeLennart Poettering2005-10-112-0/+99
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@721 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* ### BACKPORT ###Lennart Poettering2005-10-031-4/+3
| | | | | | | * remove some compiler warnings sebest found git-svn-id: file:///home/lennart/svn/public/avahi/trunk@689 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * First check server version, after that request server state in ↵Lennart Poettering2005-10-031-2/+2
| | | | | | avahi_client_new() git-svn-id: file:///home/lennart/svn/public/avahi/trunk@685 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * make all flags parameters UINT32 when marshalling for DBUSLennart Poettering2005-09-295-36/+57
| | | | | | | | | | | | | | | | | | | * rename AvahiEntryFlags to AvahiPublishFlags * add flags parameter to add_service() and friends * validity checking of flags, interface and protocol parameters of add_service() and friends * make AVAHI_VALID_FLAGS a global macro * add new flag AVAHI_PUBLISH_NO_REVERSE, if set address records will no be created with matching reverse lookup PTR RRs * add new flag AVAHI_PUBLISH_NO_COOKIE, for not implicitly adding the service cookie to TXT records * minor cleanups Yes, this will break the mono bindings. More breakages to come. NO_REVERSE and NO_COOKIE needs testing. Lathiat, I guess the new flag NO_REVERSE makes the immediate need to add a client side API to add arbitrary RRs obsolete for now. You might consider moving it in the TODO list to "later". git-svn-id: file:///home/lennart/svn/public/avahi/trunk@648 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * rename some DBUS errrorsLennart Poettering2005-09-261-8/+68
| | | | | | | * add new VERSION_MISMATCH error git-svn-id: file:///home/lennart/svn/public/avahi/trunk@630 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * fix some bugsLennart Poettering2005-09-257-161/+362
| | | | | | | | * update to current DBUS API * add test for resolving standalone SRV records git-svn-id: file:///home/lennart/svn/public/avahi/trunk@610 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * Back out incorrect changeTrent Lloyd2005-09-191-1/+0
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@602 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * Fix error handling in avahi-client so that it actually reports theTrent Lloyd2005-09-191-0/+5
| | | | | | | | | error from avahi_client_new, before the ret_error was left untouched. * In the case of a NO_DAEMON error, free the dbus error so that the NO_DAEMON error takes precidence. git-svn-id: file:///home/lennart/svn/public/avahi/trunk@601 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* add new API avahi_client_is_service_local()Lennart Poettering2005-09-102-0/+70
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@563 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* remove avahi_entry_group_get_dbus_path()Lennart Poettering2005-09-101-5/+0
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@559 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe