aboutsummaryrefslogtreecommitdiff
path: root/avahi-daemon/static-services.c
AgeCommit message (Collapse)Author
2015-08-11rename avahi-common/malloc.[ch] to avahi-malloc.Robert Ginda
This is to avoid clashing with the system malloc.h, which occurs in an android build beacause of the order of the generated includes. This change was generated with the script: cat > rename_malloc.sh <<EOF replace() { local search="$1" local replace="$2" FILES=$(grep -l "$search" $(find . -name '*.[ch]')) for file in $FILES; do echo $file sed "s|$search|$replace|" < $file > sed.tmp mv sed.tmp $file done } replace "include \"malloc.h\"" "include \"avahi-malloc.h\"" replace "include \"avahi-common/malloc.h\"" \ "include \"avahi-common/avahi-malloc.h\"" replace "include <avahi-common/malloc.h>" \ "include \"avahi-common/avahi-malloc.h\"" EOF Bug: 22827641 Change-Id: I1eeb4a57993650d8aae62f0686942cfac367b9a8
2010-06-28static-services: unescape host name when using it in static service namesLennart Poettering
2010-06-25get rid of a lot of old svn cruftLennart Poettering
2007-12-16add missing stdlib.h inclusionLennart Poettering
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1588 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
2007-12-16Allow compilation against bsdxml instead of Expat. Patch from zml. (Closes #159)Lennart Poettering
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1585 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
2007-02-05macosx portability: use GLOB_xxx macros only if they are availableLennart Poettering
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1387 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
2006-08-22regenerate wild carded service names when the host name changedLennart Poettering
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1256 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
2006-03-24 convert an error log into an info logSebastien Estienne
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1182 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
2006-03-17proposed patch to close Ticket #20Sebastien Estienne
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1179 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
2006-02-23remove yet another osx compiler warningLennart Poettering
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1162 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
2005-11-01* fix for undefined XMLCALLSebastien Estienne
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@918 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
2005-10-30* add chroot() support on LinuxLennart Poettering
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@907 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
2005-10-26* avahi-utils: replace python avahi-browse with a version written in C.Lennart Poettering
* 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
2005-10-26* add support for subtypes for static servicesLennart Poettering
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@875 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
2005-10-18* remove AVAHI_PUBLISH_IS_PROXY, it was a bad ideaLennart Poettering
* 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
2005-09-29Add new flag AVAHI_PUBLISH_IS_PROXY and activate it for static services with ↵Lennart Poettering
a host name set git-svn-id: file:///home/lennart/svn/public/avahi/trunk@658 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
2005-09-29* make all flags parameters UINT32 when marshalling for DBUSLennart Poettering
* 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
2005-09-25* adapt to recent avahi-core API changesLennart Poettering
* make use of wide area DNS git-svn-id: file:///home/lennart/svn/public/avahi/trunk@609 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
2005-08-28* be a little bit more verbose about published IP addressesLennart Poettering
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@464 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
2005-08-22Make protocol an attribute instead of an element. (Sorry Lathiat, but you ↵Lennart Poettering
broke the DTD, and I just fixed this without forcing a specific order of elements.) git-svn-id: file:///home/lennart/svn/public/avahi/trunk@401 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
2005-08-21* fix a bug with bad collision handling in static services (Thanks Sebest!)Lennart Poettering
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@378 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
2005-08-20* Add avahi-client examples to doxygenLennart Poettering
* tighten avahi-core default #includes a bit git-svn-id: file:///home/lennart/svn/public/avahi/trunk@365 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
2005-08-20brown paper bug typoLennart Poettering
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@361 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
2005-08-20small fixesLennart Poettering
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@360 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
2005-08-19 * Add support for specifying the protocol in service definition filesTrent Lloyd
* Add support for proper URL encoding of IPv6 addresses to avahi-bookmarks * Cast some calls in dbus-watch-glue to get rid of warnings git-svn-id: file:///home/lennart/svn/public/avahi/trunk@357 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
2005-08-16Fix service reloading on SIGHUP (thanks, Sebastien!)Lennart Poettering
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@349 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
2005-08-15* fix a bad memory access bug in avahi_strndup()Lennart Poettering
* some small optimizations to call gettimeofday() less often * fix dbus-watch-glue to call dbus_connection_dispatch() git-svn-id: file:///home/lennart/svn/public/avahi/trunk@333 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
2005-08-15* implement ini file parserLennart Poettering
* strip glib usage from avahi-daemon * make dbus-watch-glue a static library so that both avahi-client and avahi-daemon can make use of it git-svn-id: file:///home/lennart/svn/public/avahi/trunk@327 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
2005-08-14* allow SRV records with port == 0 (for flagship naming)Lennart Poettering
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@312 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
2005-08-13Rename some server side objects/symbols so that they do not conflict with ↵Lennart Poettering
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
2005-08-08 * Move avahi-core/llist.h to avahi-common/llist.h, not installed.Trent Lloyd
* 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
2005-08-05* add proper error codes and patch everything to make use of itLennart Poettering
* 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
2005-08-03* add C examplesLennart Poettering
* 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
2005-08-02* replace guchar and gint by AvahiProtocol, AvahiIfIndex at many places ↵Lennart Poettering
where it make sense * change avahi_add_{service,txt}_strlst() to copy the string list * gcc warning fixes from Ikke * limit number of DBUS connections * limit objects created by a DBUS client * limit number of clients * limit number of entries a client may create * add legal blurb to avahi-discover * remove some obsolete import prototypes from avahi-discover * don't include config.h in dbus.h * add string definitions for DBUS errors git-svn-id: file:///home/lennart/svn/public/avahi/trunk@212 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
2005-08-02* allow caller to specifiy additional CFLAGS arguments to bootstrap.shLennart Poettering
* fix some warnings (and some real errors) found when compiling avahi with excessive GCC warnings git-svn-id: file:///home/lennart/svn/public/avahi/trunk@209 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
2005-07-30DBUS: finish introspection supportLennart Poettering
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@203 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
2005-07-27* swap order of "type" and "name" arguments of avahi_server_add_service() ↵Lennart Poettering
and friends git-svn-id: file:///home/lennart/svn/public/avahi/trunk@179 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
2005-06-21* Improve error message when /etc/avahi/services is not availableLennart Poettering
* improve INSTALL file git-svn-id: file:///home/lennart/svn/public/avahi/trunk@138 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
2005-06-19* detect other running mDNS stacksLennart Poettering
* replace more g_message()/g_warning() calls with avahi_log_xxx() * fix configuration file paths * only load configuration file when running daemon * require uid == 0 * fix static service reloading * add new command line option for reloading -r git-svn-id: file:///home/lennart/svn/public/avahi/trunk@129 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
2005-06-18* fix memory handling when reading configuration filesLennart Poettering
* implement signal handling in daemon * correctly increase reference counter for main contexts when running g_main_context_default() git-svn-id: file:///home/lennart/svn/public/avahi/trunk@128 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
2005-06-16* add support for static service definitions for the daemon using XML fragmentsLennart Poettering
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@115 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe