projects
/
platform
/
upstream
/
at-spi2-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb6e918
)
Return ChildCount property as a variant, per DBus spec
author
Mike Gorse
<mgorse@novell.com>
Thu, 2 Dec 2010 20:39:07 +0000
(15:39 -0500)
committer
Mike Gorse
<mgorse@novell.com>
Thu, 2 Dec 2010 20:39:07 +0000
(15:39 -0500)
registryd/registry.c
patch
|
blob
|
history
diff --git
a/registryd/registry.c
b/registryd/registry.c
index
d3e0652
..
6a5f4d9
100644
(file)
--- a/
registryd/registry.c
+++ b/
registryd/registry.c
@@
-590,8
+590,15
@@
impl_get_ChildCount (DBusMessageIter * iter, void *user_data)
{
SpiRegistry *reg = SPI_REGISTRY (user_data);
dbus_int32_t rv = reg->apps->len;
+ dbus_bool_t result;
+ DBusMessageIter iter_variant;
- return dbus_message_iter_append_basic (iter, DBUS_TYPE_INT32, &rv);
+ if (!dbus_message_iter_open_container (iter, DBUS_TYPE_VARIANT, "i",
+ &iter_variant))
+ return FALSE;
+ result = dbus_message_iter_append_basic (&iter_variant, DBUS_TYPE_INT32, &rv);
+ dbus_message_iter_close_container (iter, &iter_variant);
+ return result;
}
static DBusMessage *