| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Signed-off-by: Simon McVittie <smcv@collabora.com>
|
|
|
|
| |
Signed-off-by: Simon McVittie <smcv@collabora.com>
|
|
|
|
|
| |
They haven't been needed since GLib 2.30. Until now, we were also
incorrectly distributing the generated marshallers in tarball releases.
|
|
|
|
|
|
|
|
| |
I'm amazed this ever worked.
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=51511
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Reviewed-by: Colin Walters <walters@verbum.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This can be used to test arbitrary errors, but only in-process; in
tests with the service out-of-process, like test-dbus-glib, the initial
error (matching the error they previously threw) will always be used.
This obsoletes ThrowErrorUnderscore, ThrowErrorMultiWord and
ThrowNotSupported, but not ThrowUnregisteredError due to some strange
assumptions about the validity of GError domains in that method
(see GNOME#660731).
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=40151
Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
|
|
|
|
|
|
|
|
| |
These marshallers are actually dual-use: they're used to call certain
methods on MyObject, and also to bind to its signals.
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=38406
Reviewed-by: Cosimo Alfarano <cosimo.alfarano@collabora.co.uk>
|
|
|
|
|
| |
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=37852
Reviewed-by: Colin Walters <walters@verbum.org>
|
|
|
|
|
| |
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=30274
Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Because DBus-GLib originally was designed as a generic "object mapping"
binding, the handler for org.freedesktop.DBus.Properties simply
allowed access (read or write) to any GObject property that was
exported.
Later, the (compile time) introspection XML was added, and while we only
listed "exported" properties in the dynamic introspection XML, we
still allowed Get or Set calls to any property that was valid.
With this patch, we deny writes to properties which aren't listed
in the XML, or are listed as read-only.
For backwards compatibility however, we still allow reads. A
service may disable this by calling
dbus_glib_global_set_disable_legacy_property_access().
|
|
|
|
|
|
|
|
|
|
| |
While clients should really register their errors, dbus-glib
shouldn't be passing a malformed error interface to dbus
either. It's just not nice and libdbus will call abort().
See https://bugzilla.redhat.com/show_bug.cgi?id=581794
Signed-off-by: Colin Walters <walters@verbum.org>
|
|
|
|
|
|
|
|
| |
The error code names generated my glib-mkenums separate the words by
hyphens which are invalid D-BUS error names. This patch converts them
back to wincaps, but we can't uppercase the first letter.
Based on an original patch from Neil Roberts <neil@linux.intel.com>
|
| |
|
|
|
|
|
|
|
|
| |
This teaches the parameterised hash table about how to hash, compare and
free object paths and signatures, allowing them to be used as hash keys
and values, and also how to free strvs, so they can be used as values.
Adds some simple test methods which echo a{gas} and a{oas} dictionaries
back immediately and compare the results.
|
|
|
|
|
| |
Adds DBUS_G_TYPE_SIGNATURE, which is a boxed type just like
DBUS_G_TYPE_OBJECT_PATH.
|
|
Add a simple test suite for peer proxies. This involved refactoring the
MyObject class into its own file so that it can be used by multiple tools. Also
added is a test suite for dbus_connection_get_g_connection.
|