summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/sbus/sssd_dbus_introspect.c11
-rw-r--r--src/tests/sbus_tests.c7
2 files changed, 18 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;
diff --git a/src/tests/sbus_tests.c b/src/tests/sbus_tests.c
index 30b713530..d2725cf0e 100644
--- a/src/tests/sbus_tests.c
+++ b/src/tests/sbus_tests.c
@@ -59,6 +59,13 @@
" <arg name=\"data\" type=\"s\" direction=\"out\"/>\n" \
" </method>\n" \
" </interface>\n" \
+ " <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" \
"</node>\n"
/* our vtable */