summaryrefslogtreecommitdiffstats
path: root/src/sbus
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2014-05-21 20:06:06 +0200
committerJakub Hrozek <jhrozek@redhat.com>2014-05-22 17:36:35 +0200
commit0d8fbc2cb822b4fef90588ca368ceb883b8379f2 (patch)
tree3c9c2ce659cf1ce1015b978aa9339518c8e1695a /src/sbus
parentc5a592920fab217fdb3aaa897e68f5643de88dc4 (diff)
downloadsssd-0d8fbc2cb822b4fef90588ca368ceb883b8379f2.tar.gz
sssd-0d8fbc2cb822b4fef90588ca368ceb883b8379f2.tar.xz
sssd-0d8fbc2cb822b4fef90588ca368ceb883b8379f2.zip
SBUS: Add org.freedesktop.DBus.Properties.Get to Introspection
Reviewed-by: Stef Walter <stefw@redhat.com> Reviewed-by: Pavel Březina <pbrezina@redhat.com>
Diffstat (limited to 'src/sbus')
-rw-r--r--src/sbus/sssd_dbus_introspect.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/sbus/sssd_dbus_introspect.c b/src/sbus/sssd_dbus_introspect.c
index f310aeb74..4bd9563e6 100644
--- a/src/sbus/sssd_dbus_introspect.c
+++ b/src/sbus/sssd_dbus_introspect.c
@@ -47,6 +47,14 @@ const struct sbus_method_meta introspect_method =
" </method>\n" \
" </interface>\n"
+#define SSS_INTROSPECT_INTERFACE_PROPERTIES \
+ " <interface name=\"org.freedesktop.DBus.Properties\">\n" \
+ " <method name=\"Get\">\n" \
+ " <arg name=\"interface\" direction=\"in\" type=\"s\"/>\n" \
+ " <arg name=\"property\" direction=\"in\" type=\"s\"/>\n" \
+ " <arg name=\"value\" direction=\"out\" type=\"v\"/>\n" \
+ " </method>\n" \
+ " </interface>\n"
struct introspect_ctx {
FILE *f;
@@ -253,6 +261,9 @@ static errno_t introspect_finish(struct introspect_ctx *ictx)
ret = fputs(SSS_INTROSPECT_INTERFACE_INTROSPECTABLE, ictx->f);
if (ret < 0) return EIO;
+ ret = fputs(SSS_INTROSPECT_INTERFACE_PROPERTIES, ictx->f);
+ if (ret < 0) return EIO;
+
ret = fputs("</node>\n", ictx->f);
if (ret < 0) return EIO;