platform/upstream/avahi.git
17 years ago* Revert previous patch to check nlmsg_pid as it is bogus and breaks
Trent Lloyd [Mon, 11 Dec 2006 09:34:00 +0000 (09:34 +0000)]
* Revert previous patch to check nlmsg_pid as it is bogus and breaks
  in many cases, notably when using NetworkManager
* Replace with new SO_PASSCRED-based check of the sending UID, which
  seems to work better
* Apply for for 2.6.19+ where IFA_RTA / IFLA_RTA is no longer defined
* Mild fix to some doxygen docs for avahi-common/address.h

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1336 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

17 years ago * Fix doxygen comments for avahi watch, thanks to tedp (Closes: #77)
Trent Lloyd [Sun, 19 Nov 2006 08:04:07 +0000 (08:04 +0000)]
 * Fix doxygen comments for avahi watch, thanks to tedp (Closes: #77)

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1335 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

17 years agoAdd big note to avahi-discover.in pointing out the import dbus.glib (as
Trent Lloyd [Fri, 17 Nov 2006 16:28:10 +0000 (16:28 +0000)]
Add big note to avahi-discover.in pointing out the import dbus.glib (as
this has been a common problem for people to miss when using
avahi-discover as an example)

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1334 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

18 years agoMake d-bus version detection work for >= 1.0 (Closes: #71)
Trent Lloyd [Sat, 11 Nov 2006 00:00:20 +0000 (00:00 +0000)]
Make d-bus version detection work for >= 1.0 (Closes: #71)
Dont dbus_connection_close on shared dbus connections (Closes: #68)

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1333 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

18 years agoFix a bug where Avahi does not verify the source of netlink messages
Trent Lloyd [Mon, 6 Nov 2006 14:01:51 +0000 (14:01 +0000)]
Fix a bug where Avahi does not verify the source of netlink messages
(Closes #69)
Update NEWS/configure for 0.6.15

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1331 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

18 years agoadd updated specs to svn
Lennart Poettering [Tue, 3 Oct 2006 19:53:56 +0000 (19:53 +0000)]
add updated specs to svn

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1330 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

18 years ago * Fix dbus_service_browser not setting AVAHI_LOOKUP_RESULT_OUR_OWN.
Trent Lloyd [Mon, 25 Sep 2006 13:43:50 +0000 (13:43 +0000)]
 * Fix dbus_service_browser not setting AVAHI_LOOKUP_RESULT_OUR_OWN.

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1329 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

18 years agoFix build on NetBSD. Patch contributed by Daniel S. Haischt (closes #59)
Lennart Poettering [Thu, 21 Sep 2006 00:18:11 +0000 (00:18 +0000)]
Fix build on NetBSD. Patch contributed by Daniel S. Haischt (closes #59)

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1328 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

18 years agoreword NEWS file a little
Lennart Poettering [Wed, 13 Sep 2006 21:31:45 +0000 (21:31 +0000)]
reword NEWS file a little

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1326 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

18 years agobump version number and sonames
Lennart Poettering [Wed, 13 Sep 2006 20:15:35 +0000 (20:15 +0000)]
bump version number and sonames

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1325 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

18 years agoupdate NEWS file
Lennart Poettering [Wed, 13 Sep 2006 20:12:38 +0000 (20:12 +0000)]
update NEWS file

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1324 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

18 years agominor rtp name fix
Lennart Poettering [Tue, 12 Sep 2006 13:58:17 +0000 (13:58 +0000)]
minor rtp name fix

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1323 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

18 years agoadd a few additional service types to database
Lennart Poettering [Tue, 12 Sep 2006 13:49:37 +0000 (13:49 +0000)]
add a few additional service types to database

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1322 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

18 years agoadd pgp key server service type to database
Lennart Poettering [Tue, 12 Sep 2006 13:22:56 +0000 (13:22 +0000)]
add pgp key server service type to database

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1321 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

18 years agofix --help
Lennart Poettering [Mon, 4 Sep 2006 21:50:40 +0000 (21:50 +0000)]
fix --help

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1320 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

18 years agouse alias interfaces for network configuration if only ifconfig is available
Lennart Poettering [Mon, 4 Sep 2006 18:10:26 +0000 (18:10 +0000)]
use alias interfaces for network configuration if only ifconfig is available

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1319 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

18 years agodescribe how to communicate between IPv4LL and non-IPv4LL hosts
Lennart Poettering [Mon, 4 Sep 2006 17:43:28 +0000 (17:43 +0000)]
describe how to communicate between IPv4LL and non-IPv4LL hosts

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1318 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

18 years agodo not remove the interface address if an UNBIND event is recieved. This might accide...
Lennart Poettering [Sun, 3 Sep 2006 17:26:57 +0000 (17:26 +0000)]
do not remove the interface address if an UNBIND event is recieved. This might accidently remove a manually configured address, hence better don't touch it.

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1317 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

18 years agoconfigure broadcast address explicitly
Lennart Poettering [Sun, 3 Sep 2006 16:14:27 +0000 (16:14 +0000)]
configure broadcast address explicitly

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1316 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

18 years agofix "make distcheck"
Lennart Poettering [Sat, 2 Sep 2006 18:34:03 +0000 (18:34 +0000)]
fix "make distcheck"

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1315 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

18 years agoupdate INSTALL
Lennart Poettering [Sat, 2 Sep 2006 16:40:53 +0000 (16:40 +0000)]
update INSTALL

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1314 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

18 years agoremove "set -e" from the hook scripts since this apparently breaks stuff in the main...
Lennart Poettering [Sat, 2 Sep 2006 16:35:18 +0000 (16:35 +0000)]
remove "set -e" from the hook scripts since this apparently breaks stuff in the main hook script

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1313 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

18 years agoremove a bogus warning
Lennart Poettering [Sat, 2 Sep 2006 16:32:46 +0000 (16:32 +0000)]
remove a bogus warning

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1312 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

18 years agoship dhclient hook scripts for using ipv4ll as fallback solution where DHCP is not...
Lennart Poettering [Sat, 2 Sep 2006 14:45:59 +0000 (14:45 +0000)]
ship dhclient hook scripts for using ipv4ll as fallback solution where DHCP is not available. Only installed on Debian for now, since only Debian provides the necessary hook directories.

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1311 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

18 years agoadd avahi autoipd man page
Lennart Poettering [Sat, 2 Sep 2006 13:51:05 +0000 (13:51 +0000)]
add avahi autoipd man page

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1310 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

18 years agolots of documentation cleanups and fixes
Lennart Poettering [Sat, 2 Sep 2006 13:48:59 +0000 (13:48 +0000)]
lots of documentation cleanups and fixes

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1309 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

18 years ago* ship avahi-autopid.action in the tarball
Lennart Poettering [Fri, 1 Sep 2006 22:28:26 +0000 (22:28 +0000)]
* ship avahi-autopid.action in the tarball
* remove dependency on libavahi-common

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1308 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

18 years agoremove remnants of a todo list
Lennart Poettering [Fri, 1 Sep 2006 00:54:50 +0000 (00:54 +0000)]
remove remnants of a todo list

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1307 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

18 years ago* don't allow 169.254.0.0 and 169.254.255.255 as valid addresses
Lennart Poettering [Thu, 31 Aug 2006 21:56:51 +0000 (21:56 +0000)]
* don't allow 169.254.0.0 and 169.254.255.255 as valid addresses
* automaticaly save and restore addresses

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1306 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

18 years agoimplement chroot()ing and dropping of privileges
Lennart Poettering [Thu, 31 Aug 2006 21:22:54 +0000 (21:22 +0000)]
implement chroot()ing and dropping of privileges

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1305 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

18 years agochange process title to work with pidof/killall
Lennart Poettering [Thu, 31 Aug 2006 20:16:54 +0000 (20:16 +0000)]
change process title to work with pidof/killall

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1304 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

18 years agoinstall avahi-autoipd.action
Lennart Poettering [Thu, 31 Aug 2006 19:59:45 +0000 (19:59 +0000)]
install avahi-autoipd.action

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1303 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

18 years ago* change process title of chroot() helper process to "chroot helper" dropping
Lennart Poettering [Thu, 31 Aug 2006 19:52:01 +0000 (19:52 +0000)]
* change process title of chroot() helper process to "chroot helper" dropping
  the term "process" since everyone knows that this thing is a process anyway.

* close the libdaemon retval pipes in the chroot helper process

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1302 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

18 years agoadd support for interface configuration with user supplied event script
Lennart Poettering [Thu, 31 Aug 2006 19:48:42 +0000 (19:48 +0000)]
add support for interface configuration with user supplied event script

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1301 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

18 years agoavahi_set_proc_title(): change the process name with prctl() if available
Lennart Poettering [Thu, 31 Aug 2006 18:32:27 +0000 (18:32 +0000)]
avahi_set_proc_title(): change the process name with prctl() if available

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1300 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

18 years agoremove some embarrassinlgy superfluous code
Lennart Poettering [Thu, 31 Aug 2006 18:31:43 +0000 (18:31 +0000)]
remove some embarrassinlgy superfluous code

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1299 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

18 years agofix a few more s/DBUS/D-Bus/
Lennart Poettering [Thu, 31 Aug 2006 17:26:29 +0000 (17:26 +0000)]
fix a few more s/DBUS/D-Bus/

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1298 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

18 years agobump D-Bus API revision (forgotten in 0.6.13)
Lennart Poettering [Thu, 31 Aug 2006 17:22:29 +0000 (17:22 +0000)]
bump D-Bus API revision (forgotten in 0.6.13)

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1297 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

18 years agoSome more s/D-BUS/D-Bus/g
Lennart Poettering [Thu, 31 Aug 2006 17:20:30 +0000 (17:20 +0000)]
Some more s/D-BUS/D-Bus/g

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1296 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

18 years agoautoconf love:
Lennart Poettering [Thu, 31 Aug 2006 17:17:18 +0000 (17:17 +0000)]
autoconf love:

* use autoconf to check whether dbus_connection_close() is available and use it
  if it is, don't do those checks based on the D-Bus version.

* Make use of dbus_bus_get_private() if it is available.

* Since D-Bus agreeed on a cononical way to write their name, use that way in
  configure.ac.

* Add configure options to define the UNIX user/group for avahi-autoipd

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1295 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

18 years agoadd service file fragment for _sftp-ssh._tcp (closes #58)
Lennart Poettering [Thu, 31 Aug 2006 15:48:34 +0000 (15:48 +0000)]
add service file fragment for _sftp-ssh._tcp (closes #58)

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1294 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

18 years agofix service type database creation on solaris
Lennart Poettering [Thu, 31 Aug 2006 15:14:22 +0000 (15:14 +0000)]
fix service type database creation on solaris

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1293 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

18 years agoadd new option --force-bind
Lennart Poettering [Thu, 31 Aug 2006 01:56:55 +0000 (01:56 +0000)]
add new option --force-bind

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1292 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

18 years agoset the interface to IFF_UP before using it. handle POLLERR on the packet socket...
Lennart Poettering [Thu, 31 Aug 2006 01:26:11 +0000 (01:26 +0000)]
set the interface to IFF_UP before using it. handle POLLERR on the packet socket properly by recreating our socket.

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1291 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

18 years agoimplement command line parsing, signal handling, daemonization
Lennart Poettering [Thu, 31 Aug 2006 00:16:27 +0000 (00:16 +0000)]
implement command line parsing, signal handling, daemonization

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1290 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

18 years agoa few fixes in netlink handling
Lennart Poettering [Wed, 30 Aug 2006 21:20:53 +0000 (21:20 +0000)]
a few fixes in netlink handling

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1289 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

18 years agodocument iface.h to ease porting
Lennart Poettering [Wed, 30 Aug 2006 21:18:14 +0000 (21:18 +0000)]
document iface.h to ease porting

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1288 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

18 years agoadd netlink support
Lennart Poettering [Wed, 30 Aug 2006 19:51:54 +0000 (19:51 +0000)]
add netlink support

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1287 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

18 years agoadd initial version of a RFC3927/IPv4LL implementation
Lennart Poettering [Wed, 30 Aug 2006 16:07:26 +0000 (16:07 +0000)]
add initial version of a RFC3927/IPv4LL implementation

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1286 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

18 years agofix a few invalid calls to avahi_s_entry_group_xxx()
Lennart Poettering [Wed, 30 Aug 2006 15:31:54 +0000 (15:31 +0000)]
fix a few invalid calls to avahi_s_entry_group_xxx()

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1285 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

18 years agofix random seed initialization
Lennart Poettering [Wed, 30 Aug 2006 14:05:14 +0000 (14:05 +0000)]
fix random seed initialization

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1284 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

18 years agoupdate "homepage" target to install the tarball on the web site
Lennart Poettering [Fri, 25 Aug 2006 19:38:38 +0000 (19:38 +0000)]
update "homepage" target to install the tarball on the web site

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1282 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

18 years agoadd findstatic.pl script from Andrew Tridgell to SVN. It's useful for finding
Lennart Poettering [Fri, 25 Aug 2006 19:25:29 +0000 (19:25 +0000)]
add findstatic.pl script from Andrew Tridgell to SVN. It's useful for finding
symbols that are exported but shouldn't. It's not intended for shipping in the
tarballs. However it needed a safe place to live, since I use it regularly
during Avahi development.

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1281 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

18 years agoadd some Avahi artwork to SVN. (This is not shipped in the tarball, just needed a...
Lennart Poettering [Fri, 25 Aug 2006 19:22:57 +0000 (19:22 +0000)]
add some Avahi artwork to SVN. (This is not shipped in the tarball, just needed a safe place)

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1280 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

18 years agoupdate NEWS file
Lennart Poettering [Fri, 25 Aug 2006 19:20:54 +0000 (19:20 +0000)]
update NEWS file

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1279 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

18 years agofix python bindings for the service type database when GDBM is used
Lennart Poettering [Fri, 25 Aug 2006 19:17:08 +0000 (19:17 +0000)]
fix python bindings for the service type database when GDBM is used

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1278 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

18 years agofix build on MacOSX (patch from Sjoerd Simmons, closes #51)
Lennart Poettering [Fri, 25 Aug 2006 18:55:50 +0000 (18:55 +0000)]
fix build on MacOSX (patch from Sjoerd Simmons, closes #51)

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1277 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

18 years agoupdate NEWS file
Lennart Poettering [Fri, 25 Aug 2006 18:46:16 +0000 (18:46 +0000)]
update NEWS file

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1276 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

18 years agofix a gcc warning
Lennart Poettering [Fri, 25 Aug 2006 18:45:36 +0000 (18:45 +0000)]
fix a gcc warning

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1275 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

18 years agoupdate to newer dns_sd.h copy from Apple
Lennart Poettering [Fri, 25 Aug 2006 18:45:17 +0000 (18:45 +0000)]
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

18 years agobump sonames
Lennart Poettering [Thu, 24 Aug 2006 23:27:05 +0000 (23:27 +0000)]
bump sonames

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1273 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

18 years agoupdate NEWS file
Lennart Poettering [Thu, 24 Aug 2006 23:24:28 +0000 (23:24 +0000)]
update NEWS file

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1272 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

18 years agorethink r1269 once again: instead of updating the entry group state in
Lennart Poettering [Thu, 24 Aug 2006 21:37:18 +0000 (21:37 +0000)]
rethink r1269 once again: instead of updating the entry group state in
EntryGroup::Commit() immediately (which would cause the state change callback
function to be called from the current stack frame which might be roblem for
some programs), do it asynchronously again, like in pre-r1269. However, modify
GetState() to always return the real state by asking the server if we have
doubt that our locally cached state is out-of-date.

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1271 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

18 years agoimplement DNSServiceUpdateRecord() for updating existing TXT records (closes #56)
Lennart Poettering [Thu, 24 Aug 2006 21:04:24 +0000 (21:04 +0000)]
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

18 years agoIf the client calls EntryGroup::Commit update the local state immediately and
Lennart Poettering [Thu, 24 Aug 2006 21:02:46 +0000 (21:02 +0000)]
If the client calls EntryGroup::Commit update the local state immediately and
do not delay this until the server informed us about the state change
asynchronously. The reason for this change is that otherwise all functions that
access the entry group depend on the out-of-date state for their validity
checks, which is obviously a bad idea.

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1269 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

18 years agofollow Bonjour's handling of subtypes when browsing/registering services (closes...
Lennart Poettering [Thu, 24 Aug 2006 17:58:02 +0000 (17:58 +0000)]
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

18 years agodo not alllow setting the host name to the one that is currently used anyway. return...
Lennart Poettering [Wed, 23 Aug 2006 23:36:28 +0000 (23:36 +0000)]
do not alllow setting the host name to the one that is currently used anyway. return AVAHI_ERR_NO_CHANGE in that case

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1267 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

18 years agoadd new error code AVAHI_ERR_NO_CHANGE
Lennart Poettering [Wed, 23 Aug 2006 23:35:46 +0000 (23:35 +0000)]
add new error code AVAHI_ERR_NO_CHANGE

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1266 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

18 years ago- allow access to the DBUS SetHostName method only to users in the group "netdev...
Lennart Poettering [Wed, 23 Aug 2006 23:04:46 +0000 (23:04 +0000)]
- allow access to the DBUS SetHostName method only to users in the group "netdev" (and make that group name configurable on ./configure
- bump version number

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1265 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

18 years agoadd man page for avahi-set-host-name
Lennart Poettering [Tue, 22 Aug 2006 02:28:46 +0000 (02:28 +0000)]
add man page for avahi-set-host-name

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1264 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

18 years agoadd new utility "avahi-set-host-name" for changing the mDNS host name during runtime
Lennart Poettering [Tue, 22 Aug 2006 02:27:14 +0000 (02:27 +0000)]
add new utility "avahi-set-host-name" for changing the mDNS host name during runtime

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1263 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

18 years agoremove unnecessary #include
Lennart Poettering [Tue, 22 Aug 2006 02:26:11 +0000 (02:26 +0000)]
remove unnecessary #include

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1262 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

18 years agoimplement avahi_client_set_host_name() as wrapper around the new DBUS function o...
Lennart Poettering [Tue, 22 Aug 2006 02:15:27 +0000 (02:15 +0000)]
implement avahi_client_set_host_name() as wrapper around the new DBUS function o.fd.A.S.SetHostName

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1261 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

18 years agoadd new D-Bus API function SetHostName to change the host name of the running avahi...
Lennart Poettering [Tue, 22 Aug 2006 01:49:25 +0000 (01:49 +0000)]
add new D-Bus API function SetHostName to change the host name of the running avahi daemon

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1260 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

18 years agofix AVAHI_SERVER_REGISTERING handling
Lennart Poettering [Tue, 22 Aug 2006 01:48:48 +0000 (01:48 +0000)]
fix AVAHI_SERVER_REGISTERING handling

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1259 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

18 years agofix logic of AVAHI_SERVER_REGISTERING state handling. Many clients assumed that
Lennart Poettering [Tue, 22 Aug 2006 01:48:13 +0000 (01:48 +0000)]
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

18 years agodocumentation update
Lennart Poettering [Tue, 22 Aug 2006 01:44:27 +0000 (01:44 +0000)]
documentation update

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1257 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

18 years agoregenerate wild carded service names when the host name changed
Lennart Poettering [Tue, 22 Aug 2006 01:43:51 +0000 (01:43 +0000)]
regenerate wild carded service names when the host name changed

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1256 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

18 years agofix an evil typo which removed the glib example from doxygen
Lennart Poettering [Tue, 22 Aug 2006 00:02:24 +0000 (00:02 +0000)]
fix an evil typo which removed the glib example from doxygen

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1255 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

18 years agoa few documentation updates
Lennart Poettering [Tue, 22 Aug 2006 00:01:42 +0000 (00:01 +0000)]
a few documentation updates

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1254 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

18 years agobuild docs for avahi-core only if --enable-core-docs was passed to configure. Build...
Lennart Poettering [Mon, 21 Aug 2006 23:34:46 +0000 (23:34 +0000)]
build docs for avahi-core only if --enable-core-docs was passed to configure. Build GLIb docs only when glib is enabled, same for qt3/qt4

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1253 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

18 years agodon't built any "include graphs" with doxygen
Lennart Poettering [Mon, 21 Aug 2006 23:32:27 +0000 (23:32 +0000)]
don't built any "include graphs" with doxygen

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1252 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

18 years agodon't define "docdir" which is being defined by autoconf internally
Lennart Poettering [Mon, 21 Aug 2006 23:31:59 +0000 (23:31 +0000)]
don't define "docdir" which is being defined by autoconf internally

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1251 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

18 years agofollow Bonjour's hostname number incrementing algorithm for handling conflicts. On...
Lennart Poettering [Mon, 21 Aug 2006 20:53:24 +0000 (20:53 +0000)]
follow Bonjour's hostname number incrementing algorithm for handling conflicts. On collision the name "foobar" will now become "foobar-2" and not "foobar2". (closes #40)

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1250 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

18 years agodon't remove static services from the avahi daemon on SIGHUP. Add static hosts proper...
Lennart Poettering [Mon, 21 Aug 2006 20:02:00 +0000 (20:02 +0000)]
don't remove static services from the avahi daemon on SIGHUP. Add static hosts properly to avahi daemon on SIGHUP. (closes #52)

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1249 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

18 years agoallow passing NULL as callback function in DNSServiceRegister() as documented by...
Lennart Poettering [Mon, 21 Aug 2006 16:43:44 +0000 (16:43 +0000)]
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

18 years agofix build if avahi is built without gtk but with python support (closes #54)
Lennart Poettering [Mon, 21 Aug 2006 14:43:05 +0000 (14:43 +0000)]
fix build if avahi is built without gtk but with python support (closes #54)

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1247 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

18 years agofix build when neither HAVE_GDBM nor HAVE_DBM is specified
Lennart Poettering [Sun, 20 Aug 2006 01:16:06 +0000 (01:16 +0000)]
fix build when neither HAVE_GDBM nor HAVE_DBM is specified

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1246 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

18 years agoAllow storing the service type database as Solaris DBM file, alternatively to gdbm...
Lennart Poettering [Sun, 6 Aug 2006 11:54:31 +0000 (11:54 +0000)]
Allow storing the service type database as Solaris DBM file, alternatively to gdbm. The latter is still recommended. (Patch from Padraig O'Briain)

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1245 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

18 years agofix a few typos in doxygen comments
Lennart Poettering [Sun, 6 Aug 2006 11:53:01 +0000 (11:53 +0000)]
fix a few typos in doxygen comments

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1244 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

18 years agocorrect some things in the NEWS file
Lennart Poettering [Sat, 22 Jul 2006 12:57:42 +0000 (12:57 +0000)]
correct some things in the NEWS file

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1242 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

18 years agoupdate NEWS file for 2.6.12
Lennart Poettering [Sat, 22 Jul 2006 12:40:09 +0000 (12:40 +0000)]
update NEWS file for 2.6.12

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1241 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

18 years agobump package version and sonames
Lennart Poettering [Sat, 22 Jul 2006 12:39:40 +0000 (12:39 +0000)]
bump package version and sonames

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1240 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

18 years agodisable time events after they have been dispatched
Lennart Poettering [Sat, 22 Jul 2006 00:52:50 +0000 (00:52 +0000)]
disable time events after they have been dispatched

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1239 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

18 years ago * Fix avhai builds with newer (>= 0.62) dbus that deprecated
Trent Lloyd [Tue, 18 Jul 2006 22:25:22 +0000 (22:25 +0000)]
 * Fix avhai builds with newer (>= 0.62) dbus that deprecated
dbus_connection_disconnect

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1238 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

18 years ago* several glib adapter cleanups:
Lennart Poettering [Tue, 18 Jul 2006 19:36:31 +0000 (19:36 +0000)]
* several glib adapter cleanups:
  - always translate glib io events into avahi io events and back
  - fix io event destruction
  - disallow recursive dispatching
  - always set *timeout in the GSource check_func

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1237 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

18 years agowork around a limitation in Gentoo's DBUS build (which is compiled with --disable...
Lennart Poettering [Sat, 15 Jul 2006 20:15:30 +0000 (20:15 +0000)]
work around a limitation in Gentoo's DBUS build (which is compiled with --disable-checks): never try to unregister non-existing object paths from DBUS. (closes #50 - this time for sure)

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1235 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

18 years agoproperly finish getopt argument table with a NULL entry (see #50)
Lennart Poettering [Sat, 15 Jul 2006 11:48:31 +0000 (11:48 +0000)]
properly finish getopt argument table with a NULL entry (see #50)

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1234 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

18 years agomake avahi-test run on Solaris (patch by Padraig O'Briain)
Lennart Poettering [Sun, 9 Jul 2006 21:33:56 +0000 (21:33 +0000)]
make avahi-test run on Solaris (patch by Padraig O'Briain)

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1233 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

18 years agoflush stdout after every line, this makes avahi-browse more useful in shell scripts...
Lennart Poettering [Sun, 9 Jul 2006 13:49:58 +0000 (13:49 +0000)]
flush stdout after every line, this makes avahi-browse more useful in shell scripts where pipes are involved (closes #48)

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1232 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe