summaryrefslogtreecommitdiffstats
path: root/avahi-client/client-test.c
Commit message (Collapse)AuthorAgeFilesLines
* get rid of a lot of old svn cruftLennart Poettering2010-06-251-2/+0
|
* build-sys: make things more quietLennart Poettering2010-06-251-9/+9
|
* from now on we enforce a strict whitespace regimeLennart Poettering2010-06-251-15/+15
|
* 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
* * add new flags parameter to avahi_client_new()Lennart Poettering2005-11-081-2/+2
| | | | | | | | | | | * 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
* * 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
* * avahi-daemon: Implement EntryGroup::AddRecord for arbitrary record additionsTrent Lloyd2005-10-271-0/+1
| | | | | | | * 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
* * avahi-utils: replace python avahi-browse with a version written in C.Lennart Poettering2005-10-261-13/+13
| | | | | | | | | | | * 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
* * 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
* * remove AVAHI_PUBLISH_IS_PROXY, it was a bad ideaLennart Poettering2005-10-181-4/+4
| | | | | | | | | | | * 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-171-1/+23
| | | | | | | | | | | | * 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-171-0/+13
| | | | | | | | | | | | 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
* * drop AVAHI_RESOLVER_TIMEOUT, AVAHI_RESOLVER_NOT_FOUND and ↵Lennart Poettering2005-10-121-6/+3
| | | | | | | | | | | 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
* * make all flags parameters UINT32 when marshalling for DBUSLennart Poettering2005-09-291-2/+2
| | | | | | | | | | | | | | | | | | | * 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
* * fix some bugsLennart Poettering2005-09-251-42/+86
| | | | | | | | * 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
* * add magic identification cookies to service TXT records automaticallyLennart Poettering2005-09-101-0/+4
| | | | | | | | | * add an API to query the local service cookie * add a DBUS interface to query the local service cookie * wrap that in avahi-client git-svn-id: file:///home/lennart/svn/public/avahi/trunk@555 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * Move service/host name/address resolvers to asynchronous interfacesLennart Poettering2005-08-281-21/+24
| | | | | | | | | | * drop xxx_get_dbus_path() functions * drop xxx_block() functions * fix compiler warning about missing const * fix some minor memory corruption bugs git-svn-id: file:///home/lennart/svn/public/avahi/trunk@462 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * fix some small issues in client-testLennart Poettering2005-08-271-4/+4
| | | | | | | * add protocol argument avahi_adress_resolver_new_a() git-svn-id: file:///home/lennart/svn/public/avahi/trunk@458 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * Implement AddressResolver in the avahi-client C apiTrent Lloyd2005-08-261-14/+39
| | | | | | | * Small fix to the HostNameResolver git-svn-id: file:///home/lennart/svn/public/avahi/trunk@450 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * Implement the HostNameResolver in the avahi-client C apiTrent Lloyd2005-08-261-0/+41
| | | | | | | | * Add HostNameResolver and ServiceResolver to client-test * Add get_client functions to all avahi-client browsers/resolvers git-svn-id: file:///home/lennart/svn/public/avahi/trunk@449 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * Add a simple entry group reset/change/commit to client-testTrent Lloyd2005-08-211-3/+17
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@389 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * complete error handling in avahi-clientLennart Poettering2005-08-201-11/+20
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@362 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * many improvements to avahi-client (especially error handling)Lennart Poettering2005-08-201-24/+14
| | | | | | | * Document AVahi error handling a little git-svn-id: file:///home/lennart/svn/public/avahi/trunk@358 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * implement avahi_client_freeLennart Poettering2005-08-191-1/+1
| | | | | | | * issue initial GetState() call synchronously git-svn-id: file:///home/lennart/svn/public/avahi/trunk@352 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * start implementing error handling in avahi-clientLennart Poettering2005-08-161-3/+10
| | | | | | | | | * doxygen document timeval.h * add two more AVAHI_GCC_SENTINELs git-svn-id: file:///home/lennart/svn/public/avahi/trunk@350 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * cleanup build system a littleLennart Poettering2005-08-151-27/+32
| | | | | | | | * strip remaining glib usage * -fPIC build fix for x86-64 (thanks tvainika) git-svn-id: file:///home/lennart/svn/public/avahi/trunk@336 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * add new priority parameter to avahi_glib_poll_new()Lennart Poettering2005-08-141-13/+19
| | | | | | | | | | | | * beef up AvahiPoll a little to contain real timeout events * cleanups in avahi-client * drop glib dependency * port to AvahiPoll system * put some "const"s and "static"s in to make gcc shut up * change all uses of malloc/free to avahi_malloc/avahi_new/avahi_free git-svn-id: file:///home/lennart/svn/public/avahi/trunk@324 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * Remove AvahiEntryGroups from the client's list when we free itTrent Lloyd2005-08-141-3/+12
| | | | | | | * Add a test for AvahiEntryGroup free() git-svn-id: file:///home/lennart/svn/public/avahi/trunk@322 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * Implement free functions for the various browsers in the C apiTrent Lloyd2005-08-141-0/+12
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@319 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * Add service browser support to C client APITrent Lloyd2005-08-141-0/+12
| | | | | | | * Small fix to avahi-common to get make distcheck further git-svn-id: file:///home/lennart/svn/public/avahi/trunk@317 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * Revert revision 303 (Name space changes) as avahi-core has now been changed.Trent Lloyd2005-08-141-6/+6
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@315 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * Rename various data structures to prevent a namespace conflict with ↵Trent Lloyd2005-08-121-6/+6
| | | | | | avahi-core git-svn-id: file:///home/lennart/svn/public/avahi/trunk@304 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* Please do not include "config.h" in header files! (I wrote this in HACKING, ↵Lennart Poettering2005-08-111-0/+4
| | | | | | by the way) git-svn-id: file:///home/lennart/svn/public/avahi/trunk@293 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * Add ServiceTypeBrowser support to C APITrent Lloyd2005-08-111-2/+15
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@290 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * Add DomainBrowser support to C client APITrent Lloyd2005-08-111-3/+16
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@289 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * Work on avahi-clientTrent Lloyd2005-08-111-6/+36
| | | | | | | | | | | - Support for connecting and registering services works - Needs some more error handling (DBus Errors from the daemon) - Needs browser support yet * Fix avahi-utils to pass make dist-check * Add new error codes git-svn-id: file:///home/lennart/svn/public/avahi/trunk@288 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * Move avahi-core/llist.h to avahi-common/llist.h, not installed.Trent Lloyd2005-08-081-3/+31
| | | | | | | | | | * avahi-client/ - Add copyright notice - Remove glib, various cleanups - Remove alternative host/service functions (available in avahi-common) git-svn-id: file:///home/lennart/svn/public/avahi/trunk@275 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * Work on avahi-clientTrent Lloyd2005-08-011-2/+19
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@208 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * Move dbus service #defines to avahi-common/dbus.hTrent Lloyd2005-07-291-3/+7
| | | | | | | | | * Move cdecl.h to installed common headers * Remove glib use from avahi-client * Only build avahi-client if dbus is enabled git-svn-id: file:///home/lennart/svn/public/avahi/trunk@190 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * Add some use documentation to the daemonTrent Lloyd2005-06-041-0/+11
* Create the structure for avahi-client * Start building avahi-client and daemon by default git-svn-id: file:///home/lennart/svn/public/avahi/trunk@100 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe