History log of /external/avahi/avahi-compat-libdns_sd/compat.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
8e46e738cae449bf44232c66e973c8e9e15fbcb5 05-Aug-2015 Robert Ginda <rginda@chromium.org> rename avahi-common/malloc.[ch] to avahi-malloc.

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
/external/avahi/avahi-compat-libdns_sd/compat.c
e31663c4a2fb2f8bf22efc237c3092242cc9bac2 28-Jun-2010 Lennart Poettering <lennart@poettering.net> libdns_sd: implement DNSServiceQueryRecord()

Modified patch, originally from "AlfonsName".

http://avahi.org/ticket/270
/external/avahi/avahi-compat-libdns_sd/compat.c
908e491f7d55209acfbb2595ab1ef5b24502d641 25-Jun-2010 Lennart Poettering <lennart@poettering.net> get rid of a lot of old svn cruft
/external/avahi/avahi-compat-libdns_sd/compat.c
a97605e07ad7f44f2f65e15be64880e61a39ab43 25-Jun-2010 Lennart Poettering <lennart@poettering.net> from now on we enforce a strict whitespace regime
/external/avahi/avahi-compat-libdns_sd/compat.c
373dc531148992c6a5cf57b2fae29286afd70488 06-Sep-2007 Lennart Poettering <lennart@poettering.net> Fix a segfault when registering services with libdns_sd before the avahi daemon finished starting up; Closes rhbz 251700; Original patch from Tim Waugh

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1536 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
/external/avahi/avahi-compat-libdns_sd/compat.c
511bbee5e4da8e71b5da8521a162941398ebfdba 12-Apr-2007 Lennart Poettering <lennart@poettering.net> Improve compatibility with Bonjour's libdns_sd (Patch from Chris Rivera, closes #118)


git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1409 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
/external/avahi/avahi-compat-libdns_sd/compat.c
5b7e4f49787da905b9ec7d01eaf76462ca3a6e28 06-Jan-2007 Lennart Poettering <lennart@poettering.net> * handle NULL sdrefs gracefully.
* fix mutex locking order in DNSProcessResult


git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1374 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
/external/avahi/avahi-compat-libdns_sd/compat.c
c9109b4b6f4eca16ad867d91bd6683ac6355be76 28-Dec-2006 Trent Lloyd <lathiat@bur.st> * Gracefully handle some conditions in libdns_sd that Bonjour handles
(Closes #64)



git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1345 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
/external/avahi/avahi-compat-libdns_sd/compat.c
82aabd487bd00b79147ee23f4f76d692fdd0ced3 25-Aug-2006 Lennart Poettering <lennart@poettering.net> update to newer dns_sd.h copy from Apple


git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1274 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
/external/avahi/avahi-compat-libdns_sd/compat.c
fc3830c24fd0341d762a2c4f05198f27fc3ccac0 24-Aug-2006 Lennart Poettering <lennart@poettering.net> implement DNSServiceUpdateRecord() for updating existing TXT records (closes #56)


git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1270 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
/external/avahi/avahi-compat-libdns_sd/compat.c
e521a9a2fad8314d5e7d5bbde47b2c852a1426a7 24-Aug-2006 Lennart Poettering <lennart@poettering.net> follow Bonjour's handling of subtypes when browsing/registering services (closes #41)


git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1268 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
/external/avahi/avahi-compat-libdns_sd/compat.c
c1e5b725e8e769c8ac1f5df97aac53896b05af43 22-Aug-2006 Lennart Poettering <lennart@poettering.net> fix logic of AVAHI_SERVER_REGISTERING state handling. Many clients assumed that
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
/external/avahi/avahi-compat-libdns_sd/compat.c
d4fd0d73b1d646f3708f1fdcbca0d494dda7e475 21-Aug-2006 Lennart Poettering <lennart@poettering.net> allow passing NULL as callback function in DNSServiceRegister() as documented by Apple. (closes #57)


git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1248 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
/external/avahi/avahi-compat-libdns_sd/compat.c
1a944fb979cf994bdf3b669248f8508394c1697b 26-Apr-2006 Lennart Poettering <lennart@poettering.net> Merge patch "avahi-compat-error-return.patch" from Stanislav Brabec/JP Rosevear, see #30


git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1205 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
/external/avahi/avahi-compat-libdns_sd/compat.c
da014c84b0c8ec1ef52752dd79bbf96ee024d0bb 21-Dec-2005 Lennart Poettering <lennart@poettering.net> remove superfluous assert


git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1042 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
/external/avahi/avahi-compat-libdns_sd/compat.c
6ecd227ceadc32ed229246aa61df6361c7b58a95 08-Nov-2005 Lennart Poettering <lennart@poettering.net> * add new flags parameter to avahi_client_new()
* 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
/external/avahi/avahi-compat-libdns_sd/compat.c
4e2113a7d5b702ff070e8220b32662bb00ae02dd 06-Nov-2005 Lennart Poettering <lennart@poettering.net> * Rename AVAHI_ERR_NOT_CONNECTED to AVAHI_ERR_DISCONNECTED
* 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
/external/avahi/avahi-compat-libdns_sd/compat.c
6f37f0e1126ad3776b80dbd64701f38a58738921 06-Nov-2005 Lennart Poettering <lennart@poettering.net> add new client state AVAHI_CLIENT_FAILURE


git-svn-id: file:///home/lennart/svn/public/avahi/trunk@931 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
/external/avahi/avahi-compat-libdns_sd/compat.c
270ea0a81dacf6a2073019d232b6f106e33eeb14 01-Nov-2005 Sebastien Estienne <sebastien.estienne@gmail.com> * many small fixes for NetBSD


git-svn-id: file:///home/lennart/svn/public/avahi/trunk@911 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
/external/avahi/avahi-compat-libdns_sd/compat.c
20011324500a728851e4888c890a756ecf71394b 27-Oct-2005 Lennart Poettering <lennart@poettering.net> Add validity checking to TXT data parsing, this fixes a remotely exploitable vulnerability.


git-svn-id: file:///home/lennart/svn/public/avahi/trunk@888 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
/external/avahi/avahi-compat-libdns_sd/compat.c
854f901f491ccda79aee11edc3d59109cb229d28 26-Oct-2005 Lennart Poettering <lennart@poettering.net> * avahi-utils: replace python avahi-browse with a version written in C.
* 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
/external/avahi/avahi-compat-libdns_sd/compat.c
f17d2832301b0f2fcd50fdcc6fec77666178158f 25-Oct-2005 Lennart Poettering <lennart@poettering.net> * add new entry group state AVAHI_ENTRY_GROUP_FAILURE
* 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
/external/avahi/avahi-compat-libdns_sd/compat.c
0d0c9486e3fe26fdd67624ee57961ba2d5846ebb 23-Oct-2005 Lennart Poettering <lennart@poettering.net> reorder locking


git-svn-id: file:///home/lennart/svn/public/avahi/trunk@844 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
/external/avahi/avahi-compat-libdns_sd/compat.c
44781dc4d0c3dfdc5d78900d56e93d3450e82f55 23-Oct-2005 Lennart Poettering <lennart@poettering.net> Reversse r841


git-svn-id: file:///home/lennart/svn/public/avahi/trunk@843 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
/external/avahi/avahi-compat-libdns_sd/compat.c
caa787a5490efb94015ae3f26e79983573997a2d 23-Oct-2005 Lennart Poettering <lennart@poettering.net> Allow calls to DNSServiceRefDeallocate() with NULL passed


git-svn-id: file:///home/lennart/svn/public/avahi/trunk@842 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
/external/avahi/avahi-compat-libdns_sd/compat.c
e559962871b8564afb6199f3b5fe24cd47607745 23-Oct-2005 Lennart Poettering <lennart@poettering.net> set O_NONBLOCK for expoted libdns_sd sockets


git-svn-id: file:///home/lennart/svn/public/avahi/trunk@841 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
/external/avahi/avahi-compat-libdns_sd/compat.c
0c54764cf19428a0c52724a75ddf3368e3899209 17-Oct-2005 Lennart Poettering <lennart@poettering.net> * split client.h into client.h, lookup.h and publish.h just like we did on 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
/external/avahi/avahi-compat-libdns_sd/compat.c
9da0241b9c1bf751605ba11fa6d4c75e34fe5f2b 16-Oct-2005 Lennart Poettering <lennart@poettering.net> * fix compat-howl to work with nautilus
* make similar changes to compat-libdns_sd
* implement sw_salt_lock()/sw_salt_unlock() in compt-howl
* simple-watch: allows immediate rerunning of avahi_simple_poll_run()


git-svn-id: file:///home/lennart/svn/public/avahi/trunk@787 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
/external/avahi/avahi-compat-libdns_sd/compat.c
fee238b3a20c8fbb34af6b08995df2265131bee6 16-Oct-2005 Lennart Poettering <lennart@poettering.net> Minor cleanups


git-svn-id: file:///home/lennart/svn/public/avahi/trunk@784 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
/external/avahi/avahi-compat-libdns_sd/compat.c
45513c3b363228f92572d853e63085b5db60c166 15-Oct-2005 Lennart Poettering <lennart@poettering.net> * Minor cleanups
* Really create a recursive mutex


git-svn-id: file:///home/lennart/svn/public/avahi/trunk@767 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
/external/avahi/avahi-compat-libdns_sd/compat.c
c8879d3cf7f23325346e1bd601924c6b1e0a21d1 15-Oct-2005 Lennart Poettering <lennart@poettering.net> fix build


git-svn-id: file:///home/lennart/svn/public/avahi/trunk@766 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
/external/avahi/avahi-compat-libdns_sd/compat.c
786a6a7fa3840d06e64f7429e134ddb06cc1dedd 15-Oct-2005 Lennart Poettering <lennart@poettering.net> minor cleanups


git-svn-id: file:///home/lennart/svn/public/avahi/trunk@763 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
/external/avahi/avahi-compat-libdns_sd/compat.c
bb14e0a8aa3173c8a6d80b1a9c8b300a452ee9f1 12-Oct-2005 Lennart Poettering <lennart@poettering.net> * drop AVAHI_RESOLVER_TIMEOUT, AVAHI_RESOLVER_NOT_FOUND and 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
/external/avahi/avahi-compat-libdns_sd/compat.c
1adbc218354388dd59c68267c363d2fbcc75eaad 11-Oct-2005 Lennart Poettering <lennart@poettering.net> add subtype support to compat-libdns_sd


git-svn-id: file:///home/lennart/svn/public/avahi/trunk@723 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
/external/avahi/avahi-compat-libdns_sd/compat.c
c1d9b9cffd6f756339c1d98a2d2914d49195cb41 11-Oct-2005 Lennart Poettering <lennart@poettering.net> add support for service subtypes: avahi_server_add_service_subtype()


git-svn-id: file:///home/lennart/svn/public/avahi/trunk@714 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
/external/avahi/avahi-compat-libdns_sd/compat.c
d1dd07145bb3db5c6fd77c55aea762eb79ab3b5c 11-Oct-2005 Lennart Poettering <lennart@poettering.net> * rename avahi_service_name_snprint() to avahi_service_name_join()
* add avahi_service_name_split() and make everything use it
* change avahi_normalize_name() to work on a supplied buffer instead of malloc'ed memory.
* add avahi_normalize_name_strdup() that retains the old behaviour avahi_normalize_name()
* same thing for avahi_get_host_name()/avahi_get_host_name_strdup()
* Rewrite domain name escaping and validity checking code
* Remove superfluous memory allocationsfrom various browsers and do some other major cleanups
* add new global macro AVAHI_CHECK_VALIDITY_RETURN_NULL() and modify many things to make use of it
* add AVAHI_LABEL_MAX
* patch everything to make use of AVAHI_LABEL_MAX and AVAHI_DOMAIN_NAME_MAX
* add pretty printing for NS records
* add partial pretty printing for SOA records
* add many more validity checks to various user API functions


git-svn-id: file:///home/lennart/svn/public/avahi/trunk@708 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
/external/avahi/avahi-compat-libdns_sd/compat.c
1c22aa6ce3490c7f5447179b4ec2e6113881660e 06-Oct-2005 Lennart Poettering <lennart@poettering.net> add more AVAHI_WARN_UNSUPPORTED lines


git-svn-id: file:///home/lennart/svn/public/avahi/trunk@703 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
/external/avahi/avahi-compat-libdns_sd/compat.c
cc10c2a6a4a29d65a72fb33b7cf6206e5f04be30 05-Oct-2005 Lennart Poettering <lennart@poettering.net> browse in .local unconditionally in compat-libdns_sd


git-svn-id: file:///home/lennart/svn/public/avahi/trunk@702 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
/external/avahi/avahi-compat-libdns_sd/compat.c
26ff12dc7f06b0031050938d297e6ef94931e8bf 05-Oct-2005 Lennart Poettering <lennart@poettering.net> add trailing dots to various domain names and service types returned by the libdns_sd compatibility layer


git-svn-id: file:///home/lennart/svn/public/avahi/trunk@700 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
/external/avahi/avahi-compat-libdns_sd/compat.c
c26e445b409215cd2fa380c8ba8e6c8f6115aec5 04-Oct-2005 Lennart Poettering <lennart@poettering.net> final rename


git-svn-id: file:///home/lennart/svn/public/avahi/trunk@698 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
/external/avahi/avahi-compat-libdns_sd/compat.c