summaryrefslogtreecommitdiffstats
path: root/avahi-daemon/dbus-protocol.c
Commit message (Collapse)AuthorAgeFilesLines
* Complete AVAHI_LOOKUP_NO_ADDRESS fixJakub Stachowski2005-10-131-1/+4
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@756 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * handle AVAHI_LOOKUP_NO_ADDRESS over DBUS correctlyLennart Poettering2005-10-131-2/+4
| | | | 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-121-25/+42
| | | | | | | | | | | 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
* wrap avahi_server_add_service_subtype() for DBUSLennart Poettering2005-10-111-6/+41
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@720 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * make all flags parameters UINT32 when marshalling for DBUSLennart Poettering2005-09-291-48/+70
| | | | | | | | | | | | | | | | | | | * 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 yet another bug found by our bugfinder number one, Sebastien. Thank you, ↵Lennart Poettering2005-09-281-0/+1
| | | | | | Sebest! git-svn-id: file:///home/lennart/svn/public/avahi/trunk@642 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * adapt to recent avahi-core API changesLennart Poettering2005-09-251-101/+191
| | | | | | | * make use of wide area DNS git-svn-id: file:///home/lennart/svn/public/avahi/trunk@609 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* Make AVAHI_PROTO_xxx well defined constantsLennart Poettering2005-09-161-6/+6
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@595 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* add new DBUS function IsServiceLocal()Lennart Poettering2005-09-101-0/+33
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@562 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * add magic identification cookies to service TXT records automaticallyLennart Poettering2005-09-101-0/+20
| | | | | | | | | * 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
* * improve debug messages Lennart Poettering2005-08-281-13/+21
| | | | | | | * set destination for asynchronous resolver signals git-svn-id: file:///home/lennart/svn/public/avahi/trunk@460 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * brrr, fix commit r442Lennart Poettering2005-08-251-2/+2
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@444 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * support GetNetworkInterfaceNameByIndex/IndexByName on IPv6-only hostsLennart Poettering2005-08-251-8/+10
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@442 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* Implement asynchronous service resolving DBUS APILennart Poettering2005-08-231-18/+178
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@427 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * Implement asynchronous host name resolvingLennart Poettering2005-08-231-5/+131
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@426 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * Implement asynchronous address resolverLennart Poettering2005-08-231-9/+150
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@425 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* More asynchronous resolver workLennart Poettering2005-08-221-12/+67
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@402 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* preliminary asynchronous resolver workLennart Poettering2005-08-221-39/+73
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@400 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * Add avahi-client examples to doxygenLennart Poettering2005-08-201-0/+2
| | | | | | | * tighten avahi-core default #includes a bit git-svn-id: file:///home/lennart/svn/public/avahi/trunk@365 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * Improve and reorganise DBus error handling, see avahi-common/dbus.hTrent Lloyd2005-08-191-31/+2
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@354 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * set FILENO rlimit to 30 by defaultLennart Poettering2005-08-191-12/+33
| | | | | | | * improve DBUS initialization a little git-svn-id: file:///home/lennart/svn/public/avahi/trunk@353 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * start implementing error handling in avahi-clientLennart Poettering2005-08-161-3/+3
| | | | | | | | | * 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
* * implement ini file parserLennart Poettering2005-08-151-221/+274
| | | | | | | | * 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
* * Fix docs/INSTALL for the right dbus path for debian (Thanks sebest)Trent Lloyd2005-08-141-1/+0
| | | | | | | | | | * Put -DDBUS_API_SUBJECT_TO_CHANGE in DBUS_CFLAGS and remove from individual files * Add avahi-client to the C++ test runs, compile with DBUS flags * Fix avahi-client to compile with C++ compilers. git-svn-id: file:///home/lennart/svn/public/avahi/trunk@323 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * Add a free function for AvahiEntryGroup in C apiTrent Lloyd2005-08-141-1/+2
| | | | | | | * Modify the browser free functions to return/set errors. git-svn-id: file:///home/lennart/svn/public/avahi/trunk@320 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* Rename some server side objects/symbols so that they do not conflict with ↵Lennart Poettering2005-08-131-32/+32
| | | | | | 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
* add missing error codes to some places where they belongLennart Poettering2005-08-131-1/+4
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@309 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * strip glib from avahi-coreLennart Poettering2005-08-131-6/+10
| | | | | | | | | | | | | | * 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
* Split avahi-common/util.h into Lennart Poettering2005-08-121-2/+0
| | | | | | | | | avahi-common/domain.h avahi-core/fdutil.h avahi-core/timeval.h git-svn-id: file:///home/lennart/svn/public/avahi/trunk@299 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* disable valgrind workaroundLennart Poettering2005-08-091-1/+1
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@282 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * Update HACKINGLennart Poettering2005-08-091-16/+65
| | | | | | | | | | | | | | | | | * Change DBUS API: txt record lists are now coded as "aay" instead of "as". Unfortunately this triggers this bug: https://bugs.freedesktop.org/show_bug.cgi?id=4023 If you want to use avahi-publish-service you need to apply the included patch. * change avahi-bookmarks to listen on 127.0.0.1 only * add ftp and https browsing support to avahi-bookmarks, but disable it due to python-dbus bugs * update avahi module for python to provide functions to convert between tring lists and lists of lists of bytes * add avahi_strlst_add_anonymous() git-svn-id: file:///home/lennart/svn/public/avahi/trunk@281 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * Move avahi-core/llist.h to avahi-common/llist.h, not installed.Trent Lloyd2005-08-081-1/+1
| | | | | | | | | | * 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
* * Beef up simple protocol with error codesLennart Poettering2005-08-051-1/+2
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@239 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * add proper error codes and patch everything to make use of itLennart Poettering2005-08-051-82/+94
| | | | | | | | * 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
* * DBUS: add GetNetworkInterface{NameByIndex,IndexByName} and make everyone ↵Lennart Poettering2005-08-041-19/+77
| | | | | | use it git-svn-id: file:///home/lennart/svn/public/avahi/trunk@232 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * add C examplesLennart Poettering2005-08-031-0/+29
| | | | | | | | | | * 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
* * replace guchar and gint by AvahiProtocol, AvahiIfIndex at many places ↵Lennart Poettering2005-08-021-24/+152
| | | | | | | | | | | | | | | | | | 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
* * fix bug reported bei Sebastien Estienne: bogus assert whhen service ↵Lennart Poettering2005-07-301-1/+2
| | | | | | resolving fails git-svn-id: file:///home/lennart/svn/public/avahi/trunk@204 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* DBUS: finish introspection supportLennart Poettering2005-07-301-13/+61
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@203 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * fix Server introspection dataLennart Poettering2005-07-301-4/+4
| | | | | | | | * define interface, path and service names in avahi.py * DBUS: server object is now available on path "/" git-svn-id: file:///home/lennart/svn/public/avahi/trunk@202 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * hide generate init scripts from SVNLennart Poettering2005-07-301-1/+13
| | | | | | | | * DBUS: implement introspection for Server object * fix avahi-daemon build (missing stdio.h inclusion) git-svn-id: file:///home/lennart/svn/public/avahi/trunk@199 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * add avahi-publishLennart Poettering2005-07-291-3/+49
| | | | | | | | | | * avahi-dump-all: allow user to specify domain to browse * DBUS: implement new methods Server.GetState(), Server.GetAlternativeHostName(), Server.GetAlternativeServiceName() * Add dbust-test.py to EXTRA_DIST * doc fix for alternative.h git-svn-id: file:///home/lennart/svn/public/avahi/trunk@192 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * Move dbus service #defines to avahi-common/dbus.hTrent Lloyd2005-07-291-8/+1
| | | | | | | | | * 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
* DBUS: Wrap service resolverLennart Poettering2005-07-291-3/+107
| | | | | | | Beef up AvahiStringList API a bit git-svn-id: file:///home/lennart/svn/public/avahi/trunk@189 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* DBUS: implement ServiceBrowserLennart Poettering2005-07-291-3/+115
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@188 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * DBUS: implement service type browsingLennart Poettering2005-07-291-17/+126
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@186 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * DBUS: implement org.freedesktop.Avahi.GetVersionString()Lennart Poettering2005-07-281-44/+292
| | | | | | | | * DBUS: implement org.freedesktop.Avahi.DomainBrowserNew() * DBUS: Some preliminary support for missing DBUS APIs git-svn-id: file:///home/lennart/svn/public/avahi/trunk@184 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * drop trailing dot in avahi_normalize_name()Lennart Poettering2005-07-281-0/+5
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@180 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * swap order of "type" and "name" arguments of avahi_server_add_service() ↵Lennart Poettering2005-07-271-2/+2
| | | | | | and friends git-svn-id: file:///home/lennart/svn/public/avahi/trunk@179 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * Wrap HostNameResolver and AddressResolver APIs in DBUSLennart Poettering2005-07-271-5/+195
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@173 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe