summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2011-04-07path_prefix: anchor matches at path-component boundaries, and give examplesSimon McVittie2-5/+40
It seems wrong that path_prefix="/foo" matches /foobar, and it isn't difficult or expensive to check.
2011-04-07Add path_prefix match ruleDavid Zeuthen3-1/+192
Add a new path_prefix match rule that can be used for efficient implementations of the org.freedesktop.DBus.ObjectManager interface (see bug 34869). https://bugs.freedesktop.org/show_bug.cgi?id=34870 Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-04-07re-word description of arg0namespaceSimon McVittie1-2/+6
It's unclear at first reading whether "may contain only one element" means "elements >= 1, as an exception to the usual rule that elements >= 2" (which is what was intended), or "elements == 1". "Like a bus name or interface name" is a little ambiguous because they have different syntactic restrictions: specifically allow any valid bus name, which also allows all interface names.
2011-04-07signals.h: rename argument in declaration to match implementationSimon McVittie1-1/+1
2011-04-07Merge remote-tracking branch 'wjt/arg0namespace' into arg0namespace-24317Simon McVittie5-53/+448
2011-03-14Update NEWS for masterSimon McVittie1-0/+6
2011-03-14Merge branch 'dbus-1.4'Simon McVittie1-0/+4
2011-03-14Update NEWSSimon McVittie1-0/+4
2011-03-14Merge branch 'dbus-1.4', rejecting all changesSimon McVittie0-0/+0
This commit changes nothing, but means that merge tracking won't try to apply the reversion of d1d395774435..09c9d6406b75f to master in future.
2011-03-14Revert merge of master (dbus-1.5) into dbus-1.4Simon McVittie13-304/+167
This reverts commits d1d395774435..09c9d6406b75f, keeping Lennart's addition of UnknownInterface etc.
2011-03-11connection: hook UnknownObject and UnknownInterface up where appropriateLennart Poettering4-6/+16
This makes use of UnknownInterface and UnknownObject where appropriate in the D-Bus core. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=34527 Reviewed-By: Simon McVittie <simon.mcvittie@collabora.co.uk>
2011-03-10protocol: introduce four new errorsLennart Poettering1-1/+9
UnknownInterface, UnknownObject, UnknownProperty and PropertyReadOnly, as discussed on the ML. The first two are already used by various bindings, such as the Qt and Java binding, but have never been made official. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=34527 Reviewed-by: David Zeuthen <davidz@redhat.com> Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
2011-03-10Make dbus_type_is_valid into public APISimon McVittie8-50/+57
This is just as useful for bindings as dbus_signature_validate, and I think it's a good design principle to say that anything checked in a _dbus_return_if_fail should be something the caller could check for themselves. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=20496 Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
2011-03-10Merge branch 'dbus-1.4'Simon McVittie7-13/+71
2011-03-10add doxygen.stamp to .gitignoreSimon McVittie1-0/+1
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=35182 Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
2011-03-10_dbus_marshal_write_fixed_multi: remove obsolete FIXME commentSimon McVittie1-2/+0
As far as I can tell, we've never accepted out-of-range booleans and canonicalized them, ever since this was first committed in 2004. If sent, they'd be considered to be invalid by recipients, so they're unambiguously an error. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=35182 Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
2011-03-10dbus_message_iter_append_basic: remove misleading documentationSimon McVittie1-4/+0
This function specifically doesn't support Unix fds and is documented as such. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=35182 Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
2011-03-10Implement uninstallation and cleanup for Doxygen docs, fixing distcheckSimon McVittie1-0/+8
Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
2011-03-10Merge branch 'validate-when-sending-16338' into dbus-1.4Simon McVittie3-0/+52
Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
2011-03-10dbus_type_is_basic etc.: it is an error to pass in bad typecodesSimon McVittie1-7/+10
Previously, the comments said "this function will crash", but that's not strictly true (checks can be disabled or made non-fatal). Their behaviour is undefined if you do that, though. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=20496 Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
2011-03-10Require specific user action to compile without 64-bit supportSimon McVittie1-4/+42
The D-Bus type system isn't implementable without 64-bit support, although for historical reasons we have some sort of semi-working support for platforms with no 64-bit integers. Let's find out whether any practically relevant platform still lacks these types... (GLib appears to have required 64-bit integer types since 2001.) Bug: https://bugs.freedesktop.org/show_bug.cgi?id=35114 Reviewed-by: Lennart Poettering <lennart@poettering.net>
2011-03-10Merge branch 'dbus-1.4'Simon McVittie1-1/+1
2011-03-10autogen: add -I m4 to aclocal pathLennart Poettering1-1/+1
This fixes 2b5959882a403cddba754b37b58bdc49bff01f90 which forgot to add m4/ to the command line of aclocal but moved scripts there.
2011-03-08Merge branch 'dbus-1.4'Simon McVittie1-2/+7
2011-03-08Update NEWSSimon McVittie1-2/+7
2011-03-07Merge branch 'dbus-1.4'Simon McVittie4-9/+10
2011-03-07Fix some more stray occurrences of ELEMENT_TYPESimon McVittie1-2/+2
2011-03-07Do not use the name ELEMENT_TYPEAndre Heinecke3-7/+8
On Windows Systems ELEMENT_TYPE is already defined in Winioctl.h this header is included indirectly in dbus-sysdeps.h. By avoiding the use of the Name ELEMENT_TYPE it is ensured that config-parser-common.h can be included together with dbus-sysdeps.h Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
2011-03-04dbus_message_iter_append_fixed_array: add a check for valid booleansSimon McVittie1-0/+13
The reasoning is the same as for dbus_message_iter_append_basic. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=16338 Reviewed-by: Cosimo Alfarano <cosimo.alfarano@collabora.co.uk>
2011-03-04dbus_message_iter_append_basic: validate booleans tooSimon McVittie1-2/+4
Sending, for instance, ((dbus_bool_t) 666) is a programming error and should be diagnosed as such. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=16338 Reviewed-by: Cosimo Alfarano <cosimo.alfarano@collabora.co.uk>
2011-03-04dbus_message_iter_append_basic: check string-like arguments for validitySimon McVittie3-0/+37
Strings: UTF-8 with no embedded NULs, by adding a new internal function, _dbus_check_is_valid_utf8 Object paths, signatures: the obvious syntactic checks This moves some of the burden of validation to the sender. When sending <http://www.cl.cam.ac.uk/~mgk25/ucs/examples/UTF-8-demo.txt> 10240 times with up to 1024 parallel calls pending, on a single-core ARM Linux device, I found that user CPU time in dbus-spam increased by up to 80% as a result of the validation. However, when sending messages to dbus-daemon, overall throughput only reduced by 15%, and when sending messages to an echo service, overall throughput actually improved by around 14% (presumably because making the sender CPU-bound influenced kernel scheduling). Bug: https://bugs.freedesktop.org/show_bug.cgi?id=16338 Bug-NB: NB#223152 Reviewed-by: Cosimo Alfarano <cosimo.alfarano@collabora.co.uk>
2011-02-25Merge branch 'dbus-1.4'Simon McVittie11-85/+200
Conflicts: NEWS
2011-02-25Merge branch 'doxygenate' into dbus-1.4Simon McVittie5-8/+67
Reviewed-by: Will Thompson <will.thompson@collabora.co.uk> Conflicts: configure.ac doc/Makefile.am
2011-02-25NEWS so farSimon McVittie1-0/+13
2011-02-25Merge branch 'changequote' into dbus-1.4Simon McVittie1-11/+5
Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
2011-02-25Merge branch 'require-display-for-autolaunch-19997' into dbus-1.4Simon McVittie4-21/+58
Reviewed-by: Colin Walters <walters@verbum.org>
2011-02-25Merge branch 'modern-autofoo-32245' into dbus-1.4Simon McVittie3-45/+59
2011-02-24Allow X11 autolaunch to be disabled even if the headers/libraries are thereSimon McVittie4-22/+47
In an embedded system where the D-Bus session is a core part of the environment, like Maemo, accidentally auto-launching a second session bus (for instance for a concurrent ssh session) is a bad idea - it can lead to a "split brain" situation where half the applications in the GUI are using a different bus. In these controlled environments, it'd be useful to prevent autolaunch from ever happening. (As a side benefit, the changes to configure.in also mean that packagers can explicitly --enable-x11-autolaunch, to make sure that failure to find X will make compilation fail cleanly.) Bug: https://bugs.freedesktop.org/show_bug.cgi?id=19997 Bug-NB: NB#219964
2011-02-24Don't attempt Unix X11 autolaunching if DISPLAY isn't setSimon McVittie1-0/+12
The known use cases for autolaunching (ssh -Y firefox, run konqueror in legacy DE) all need $DISPLAY too. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=19997
2011-02-24Merge branch 'dbus-1.4'Simon McVittie1-1/+1
2011-02-24config-parser regression test: don't require that fd.o #34496 existsSimon McVittie1-1/+1
Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
2011-02-24Merge branch 'dbus-1.4'Simon McVittie1-23/+26
2011-02-24Give XDG_DATA_HOME priority over XDG_DATA_DIRS for servicedirsSimon McVittie1-23/+26
According to the XDG Base Directory Specification, “the base directory defined by $XDG_DATA_HOME is considered more important than any of the base directories defined by $XDG_DATA_DIRS.” This makes it easier to override a system service file as a normal user. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=34496 Signed-off-by: Anders Kaseorg <andersk@mit.edu> Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
2011-02-24Honour aclocal flags in Makefile.am, rather than gluing them onto ACLOCALSimon McVittie2-4/+1
Part of a patch by Javier Jardón. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=32245 Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
2011-02-24Modernize setup of libtool for WindowsSimon McVittie1-2/+4
Part of a patch by Javier Jardón. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=32245 Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
2011-02-24Use AC_CONFIG_HEADERS, not AM_CONFIG_HEADERSimon McVittie1-1/+1
Part of a patch by Javier Jardón. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=32245 Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
2011-02-24Modernize AC_INIT usage, with a bug report URLSimon McVittie1-1/+1
Part of a patch by Javier Jardón. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=32245 Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
2011-02-24Require a somewhat modern version of autoconf and automakeSimon McVittie1-2/+2
Part of a patch by Javier Jardón. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=32245 Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
2011-02-24Modernize AC_OUTPUT usageSimon McVittie1-1/+2
Part of a patch by Javier Jardón. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=32245 Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
2011-02-24Modernize checks in ld_supports_flagSimon McVittie1-2/+4
Part of a patch by Javier Jardón. (This will conflict with changes from my gc-sections branch -smcv) Bug: https://bugs.freedesktop.org/show_bug.cgi?id=32245 Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>