From 1319e71fd1680ca4864afe0b1aca2b8c8e4a1ee4 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Tue, 25 Feb 2014 18:31:03 +0100 Subject: SBUS: Start implementing property access MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This patch adds the basis of SBUS getters and setters. A new module, sssd_dbus_properties.c would contain handlers for the property methods like Get, Set and GetAll. Type-safe property access works in a similar fashion like type-safe method calls - the invoker calls the getter which returns the primitive type, which is in turn marshalled into variant by the invoker. This patch does not contain the complete functionality, see later patches that continue implementing the getters and setters. Reviewed-by: Stef Walter Reviewed-by: Pavel Březina --- src/tests/sbus_codegen_tests_generated.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/tests/sbus_codegen_tests_generated.c') diff --git a/src/tests/sbus_codegen_tests_generated.c b/src/tests/sbus_codegen_tests_generated.c index 4ba25774..40d40cdc 100644 --- a/src/tests/sbus_codegen_tests_generated.c +++ b/src/tests/sbus_codegen_tests_generated.c @@ -94,7 +94,7 @@ const struct sbus_signal_meta com_planetexpress_Ship__signals[] = { const struct sbus_property_meta com_planetexpress_Ship__properties[] = { { "Color", /* name */ - "s", /* signature */ + "s", /* type */ SBUS_PROPERTY_READABLE, }, { NULL, } @@ -231,7 +231,7 @@ const struct sbus_method_meta test_pilot__methods[] = { const struct sbus_property_meta test_pilot__properties[] = { { "FullName", /* name */ - "s", /* signature */ + "s", /* type */ SBUS_PROPERTY_READABLE | SBUS_PROPERTY_WRITABLE, }, { NULL, } -- cgit