summaryrefslogtreecommitdiffstats
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
* * Fix specifying priviliged access group (Closes: #85)Trent Lloyd2006-12-111-1/+1
| | | | | | | | | | | | Thanks to delphinidae * Fix incorrect manual reference (Closes: #83) Thanks to delphinidae * Fix incorrect assert() in client-publish-service.c (Closes: #79) Thanks to tedp * Fix builds on < 2.6.19 (temporary fix, pending possible "better" solution) git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1337 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* fix a few more s/DBUS/D-Bus/Lennart Poettering2006-08-311-1/+1
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1298 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* fix logic of AVAHI_SERVER_REGISTERING state handling. Many clients assumed thatLennart Poettering2006-08-222-10/+26
| | | | | | | | | | this state would follow only on a AVAHI_SERVER_COLLISION state. However, this is not true, hence we need to handle this state transition, too. Mostly the same as we already handle AVAHI_SERVER_COLLISION. git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1258 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* update example to include some code to show how to modify an existing serviceLennart Poettering2006-01-271-0/+30
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1114 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * add new flags parameter to avahi_client_new()Lennart Poettering2005-11-083-2/+4
| | | | | | | | | | | * 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-063-11/+4
| | | | | | | * 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-061-0/+7
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@931 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * avahi-utils: replace python avahi-browse with a version written in C.Lennart Poettering2005-10-266-24/+20
| | | | | | | | | | | * 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
* fix core-publish-service.cLennart Poettering2005-10-241-1/+1
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@856 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * add new entry group state AVAHI_ENTRY_GROUP_FAILURELennart Poettering2005-10-242-72/+129
| | | | | | | | | | | | * 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/+8
| | | | | | | | | | | | | 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
* add config.h inclusion to glib integration exampleLennart Poettering2005-10-181-0/+4
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@814 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * remove AVAHI_PUBLISH_IS_PROXY, it was a bad ideaLennart Poettering2005-10-184-33/+26
| | | | | | | | | | | * 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-172-2/+2
| | | | | | | | | | | | * 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-172-0/+4
| | | | | | | | | | | | 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-122-13/+5
| | | | | | | | | | | 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 an example for subtype usageLennart Poettering2005-10-111-0/+6
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@722 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* ### BACKPORT ###Lennart Poettering2005-10-111-1/+1
| | | | | | | fix uninitialized memory access git-svn-id: file:///home/lennart/svn/public/avahi/trunk@718 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* add support for service subtypes: avahi_server_add_service_subtype()Lennart Poettering2005-10-111-0/+6
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@714 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* fix switch fall through errorLennart Poettering2005-09-292-1/+2
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@655 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * make all flags parameters UINT32 when marshalling for DBUSLennart Poettering2005-09-292-4/+4
| | | | | | | | | | | | | | | | | | | * 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
* s/AVAHI_LOOKUP_CALLBACK/AVAHI_LOOKUP_RESULT/gLennart Poettering2005-09-252-6/+6
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@622 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* update examples to reflect recent API changes (wide area)Lennart Poettering2005-09-253-76/+141
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@612 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* update examples to use xxx_is_service_local()Lennart Poettering2005-09-102-3/+19
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@564 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* update examples to make use of avahi_string_list_get_service_cookie() for ↵Lennart Poettering2005-09-102-2/+2
| | | | | | whatever it is worth git-svn-id: file:///home/lennart/svn/public/avahi/trunk@558 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * Add new docs/NEWS file, updated for 0.2 release.Trent Lloyd2005-08-281-0/+11
| | | | | | | | | * Add warning to examples/core-browse-services.c, warning the onlooker that they are probably looking for client-browse-services.c git-svn-id: file:///home/lennart/svn/public/avahi/trunk@478 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * Mention a 'none' option to --with-distro for distributions that are not ↵Trent Lloyd2005-08-231-0/+2
| | | | | | | | | known. * Add a return 0 to the glib integration example, better make good code examples I suppose. :) git-svn-id: file:///home/lennart/svn/public/avahi/trunk@405 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * fix glib example build when compiling without DBUS but with GLIBLennart Poettering2005-08-221-3/+3
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@396 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * Add glib integration example.Trent Lloyd2005-08-222-0/+151
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@394 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* Built client examples only when DBUS is availableLennart Poettering2005-08-211-3/+9
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@375 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * Add avahi-client examples to doxygenLennart Poettering2005-08-202-0/+3
| | | | | | | * tighten avahi-core default #includes a bit git-svn-id: file:///home/lennart/svn/public/avahi/trunk@365 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * Disable debug output of avahi-clientLennart Poettering2005-08-205-9/+361
| | | | | | | | | * implement service resolving API in avahi-client * fix some memory corruption bugs in dbus-watch-glue * add avahi-client examples git-svn-id: file:///home/lennart/svn/public/avahi/trunk@363 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* Remove glib dependency from examplesLennart Poettering2005-08-151-4/+0
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@330 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* Rename some server side objects/symbols so that they do not conflict with ↵Lennart Poettering2005-08-132-13/+13
| | | | | | the same things on the client side. i.e. AvahiEntryGroup -> AvahiSEntryGroup git-svn-id: file:///home/lennart/svn/public/avahi/trunk@310 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * strip glib from avahi-coreLennart Poettering2005-08-132-71/+120
| | | | | | | | | | | | | | * implement glib memory allocator * add new documentation file MALLOC * initialize pseudo-RNG from /dev/urandom in avahi-daemon * remove some gcc 4.0 warnings * beef up watch system with real timeouts * move GCC __attribute__ macros into its own header avahi-common/gccmacro.h * make use of GCC's sentinel attribute where it make sense * add malloc() implementations that abort on OOM and enable them by default git-svn-id: file:///home/lennart/svn/public/avahi/trunk@308 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* Improve examples to do error checkingLennart Poettering2005-08-052-15/+39
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@240 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * add proper error codes and patch everything to make use of itLennart Poettering2005-08-052-5/+29
| | | | | | | | * parameter validity checkin in all user visible functions of libavahi-core * two new python tools/examples avahi-resolve-host-name and avahi-resolve-address git-svn-id: file:///home/lennart/svn/public/avahi/trunk@238 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* don't register workstation service in exampleLennart Poettering2005-08-041-0/+1
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@226 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * add C examplesLennart Poettering2005-08-033-0/+304
* change doxygen to output stuff in "doxygen/" instead of "doxygen-doc/" * implement avahi_entry_group_{reset,is_empty}() and make everyone use it * move holdoff (SLEEPING) time checking from server to entry group * add preliminary error codes git-svn-id: file:///home/lennart/svn/public/avahi/trunk@216 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe