summaryrefslogtreecommitdiffstats
path: root/src/tests/sbus_codegen_tests.xml
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2014-04-23 03:01:21 +0200
committerJakub Hrozek <jhrozek@redhat.com>2014-05-22 17:36:20 +0200
commit90e04eae7e54ec892a6f239783df94dab5d1ed9a (patch)
tree78f6b1d72e26f079c8888238742614126ce67535 /src/tests/sbus_codegen_tests.xml
parent1319e71fd1680ca4864afe0b1aca2b8c8e4a1ee4 (diff)
downloadsssd-90e04eae7e54ec892a6f239783df94dab5d1ed9a.tar.gz
sssd-90e04eae7e54ec892a6f239783df94dab5d1ed9a.tar.xz
sssd-90e04eae7e54ec892a6f239783df94dab5d1ed9a.zip
SBUS: Implement org.freedesktop.DBus.Properties.Get for primitive types
This patch implements type-safe getters for primitive types and their arrays. The patch includes unit tests of all supported types and arrays of these types. All getter are synchronous. The getters never fail, instead, they return a default or 'not defined' value. Making the getters synchronous and always returning a value will make it significantly easier to implement the GetAll method. Reviewed-by: Stef Walter <stefw@redhat.com> Reviewed-by: Pavel Březina <pbrezina@redhat.com>
Diffstat (limited to 'src/tests/sbus_codegen_tests.xml')
-rwxr-xr-xsrc/tests/sbus_codegen_tests.xml26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/tests/sbus_codegen_tests.xml b/src/tests/sbus_codegen_tests.xml
index 83807b9c2..74037cc40 100755
--- a/src/tests/sbus_codegen_tests.xml
+++ b/src/tests/sbus_codegen_tests.xml
@@ -107,6 +107,32 @@
<arg name="object_path_array" type="ao" direction="out"/>
</method>
+ <!-- Properties with every type of basic argument, so far read only -->
+ <property name="byte" type="y" access="read"/>
+ <property name="boolean" type="b" access="read"/>
+ <property name="int16" type="n" access="read"/>
+ <property name="uint16" type="q" access="read"/>
+ <property name="int32" type="i" access="read"/>
+ <property name="uint32" type="u" access="read"/>
+ <property name="int64" type="x" access="read"/>
+ <property name="uint64" type="t" access="read"/>
+ <property name="double" type="d" access="read"/>
+ <property name="string" type="s" access="read"/>
+ <property name="object_path" type="o" access="read"/>
+
+ <!-- Property arrays with every type of basic argument except boolean
+ which we can't do (yet) -->
+ <property name="byte_array" type="ay" access="read"/>
+ <property name="int16_array" type="an" access="read"/>
+ <property name="uint16_array" type="aq" access="read"/>
+ <property name="int32_array" type="ai" access="read"/>
+ <property name="uint32_array" type="au" access="read"/>
+ <property name="int64_array" type="ax" access="read"/>
+ <property name="uint64_array" type="at" access="read"/>
+ <property name="double_array" type="ad" access="read"/>
+ <property name="string_array" type="as" access="read"/>
+ <property name="object_path_array" type="ao" access="read"/>
+
</interface>
</node>