sdbus++: async: client: make methods snake_case to match server

Use snake_case in generated bindings to match the server bindings
naming convention.

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I17c89a2e85cd4906bbfe1eaab86ab0b1837aad88
diff --git a/example/calculator-client.cpp b/example/calculator-client.cpp
index ab47767..2db6ae2 100644
--- a/example/calculator-client.cpp
+++ b/example/calculator-client.cpp
@@ -28,7 +28,7 @@
 
     {
         // Get the LastResult property.
-        auto _ = co_await c.lastResult();
+        auto _ = co_await c.last_result();
         std::cout << "Should be 42: " << _ << std::endl;
     }
 
@@ -39,15 +39,15 @@
 
     {
         // Get the LastResult property.
-        auto _ = co_await c.lastResult();
+        auto _ = co_await c.last_result();
         std::cout << "Should be 0: " << _ << std::endl;
     }
 
     {
         // Set the LastResult property.
-        co_await c.lastResult(1234);
+        co_await c.last_result(1234);
         // Get the LastResult property.
-        auto _ = co_await c.lastResult();
+        auto _ = co_await c.last_result();
         std::cout << "Should be 1234: " << _ << std::endl;
     }
 
diff --git a/tools/sdbusplus/templates/method.client.hpp.mako b/tools/sdbusplus/templates/method.client.hpp.mako
index 8001370..820b607 100644
--- a/tools/sdbusplus/templates/method.client.hpp.mako
+++ b/tools/sdbusplus/templates/method.client.hpp.mako
@@ -14,7 +14,7 @@
         % endfor
     % endif
      */
-    auto ${method.camelCase}(\
+    auto ${method.snake_case}(\
     % if len(method.parameters) != 0:
 ${method.get_parameters_str(interface, join_str=", ")}\
     % else:
diff --git a/tools/sdbusplus/templates/property.client.hpp.mako b/tools/sdbusplus/templates/property.client.hpp.mako
index c03ee3f..9dbf12d 100644
--- a/tools/sdbusplus/templates/property.client.hpp.mako
+++ b/tools/sdbusplus/templates/property.client.hpp.mako
@@ -1,7 +1,7 @@
     /** Get value of ${property.name}
      *  ${property.description.strip()}
      */
-    auto ${property.camelCase}()
+    auto ${property.snake_case}()
     {
         return proxy.template get_property<\
 ${property.cppTypeParam(interface.name)}>(context(), "${property.name}");
@@ -11,7 +11,7 @@
     /** Set value of ${property.name}
      *  ${property.description.strip()}
      */
-    auto ${property.camelCase}(auto value)
+    auto ${property.snake_case}(auto value)
     {
         return proxy.template set_property<\
 ${property.cppTypeParam(interface.name)}>(