summaryrefslogtreecommitdiffstats
path: root/avahi-client
Commit message (Collapse)AuthorAgeFilesLines
* adda note to avahi_service_resolver_new() to remind people to pass the ↵Lennart Poettering2007-04-201-1/+3
| | | | | | correct interface/protocol args they received via avahi_service_browser_new()'s callback function git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1449 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* remove yet another occurence of dbus_message_iter_get_array_len() due to ↵Lennart Poettering2006-12-311-6/+5
| | | | | | obsolescence (similar in style to r1357) git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1360 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* Fix documentation of avahi_{entry_group|client}_new(): clarify that the ↵Lennart Poettering2006-12-312-2/+2
| | | | | | specified callback function is called for the first time from withing the avahi_xxx_new() context. (Closes #65) git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1359 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* autoconf love: Lennart Poettering2006-08-311-5/+16
| | | | | | | | | | | | | | | * use autoconf to check whether dbus_connection_close() is available and use it if it is, don't do those checks based on the D-Bus version. * Make use of dbus_bus_get_private() if it is available. * Since D-Bus agreeed on a cononical way to write their name, use that way in configure.ac. * Add configure options to define the UNIX user/group for avahi-autoipd git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1295 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* rethink r1269 once again: instead of updating the entry group state inLennart Poettering2006-08-242-12/+20
| | | | | | | | | | | | EntryGroup::Commit() immediately (which would cause the state change callback function to be called from the current stack frame which might be roblem for some programs), do it asynchronously again, like in pre-r1269. However, modify GetState() to always return the real state by asking the server if we have doubt that our locally cached state is out-of-date. git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1271 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* If the client calls EntryGroup::Commit update the local state immediately andLennart Poettering2006-08-241-2/+12
| | | | | | | | | | | do not delay this until the server informed us about the state change asynchronously. The reason for this change is that otherwise all functions that access the entry group depend on the out-of-date state for their validity checks, which is obviously a bad idea. git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1269 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* implement avahi_client_set_host_name() as wrapper around the new DBUS ↵Lennart Poettering2006-08-222-0/+58
| | | | | | function o.fd.A.S.SetHostName git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1261 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* build docs for avahi-core only if --enable-core-docs was passed to ↵Lennart Poettering2006-08-211-3/+0
| | | | | | configure. Build GLIb docs only when glib is enabled, same for qt3/qt4 git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1253 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * Fix avhai builds with newer (>= 0.62) dbus that deprecated Trent Lloyd2006-07-181-0/+8
| | | | | | | dbus_connection_disconnect git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1238 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* sunstudio cc compat (contributed by Padraig O'Briain)Lennart Poettering2006-05-151-3/+3
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1219 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* brown paperbag: actually reserve memory for our AvahiAddress before parsing ↵Lennart Poettering2006-05-141-2/+2
| | | | | | data into it. (Reported by Padraig O'Briain) git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1217 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * don't call dbus_connection_get_is_connected() for a NULL dbus connection ↵Lennart Poettering2006-04-241-0/+1
| | | | | | (closes #26) git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1193 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* 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