summaryrefslogtreecommitdiffstats
path: root/src/templates/method.mako.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/templates/method.mako.cpp')
-rw-r--r--src/templates/method.mako.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/templates/method.mako.cpp b/src/templates/method.mako.cpp
new file mode 100644
index 0000000..31cdf65
--- /dev/null
+++ b/src/templates/method.mako.cpp
@@ -0,0 +1,6 @@
+makeMethod<SDBusPlus>(
+${indent(1)}ConfigInterfaces::get()[${c.service}],
+${indent(1)}ConfigPaths::get()[${c.path}],
+${indent(1)}ConfigInterfaces::get()[${c.interface}],
+${indent(1)}ConfigProperties::get()[${c.method}],
+${indent(1)}${(',\n' + indent(1)).join([val.argument(loader, indent=indent +1) for val in c.args])})\
OpenPOWER on IntegriCloud