sdbus++: async: client: add generated property calls
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I25ad8c0c167af0a55e235e5a7b4a46a3019d94ae
diff --git a/example/calculator-client.cpp b/example/calculator-client.cpp
index 56e9fb4..0fe8420 100644
--- a/example/calculator-client.cpp
+++ b/example/calculator-client.cpp
@@ -21,7 +21,7 @@
}
{
- auto _ = co_await c.get_property<int64_t>("LastResult");
+ auto _ = co_await c.lastResult();
std::cout << "Should be 42: " << _ << std::endl;
}
@@ -30,13 +30,13 @@
}
{
- auto _ = co_await c.get_property<int64_t>("LastResult");
+ auto _ = co_await c.lastResult();
std::cout << "Should be 0: " << _ << std::endl;
}
{
- co_await c.set_property<int64_t>("LastResult", 1234);
- auto _ = co_await c.get_property<int64_t>("LastResult");
+ co_await c.lastResult(1234);
+ auto _ = co_await c.lastResult();
std::cout << "Should be 1234: " << _ << std::endl;
}