summaryrefslogtreecommitdiffstats
path: root/tools/sdbus++
diff options
context:
space:
mode:
authorPatrick Williams <patrick@stwcx.xyz>2016-10-15 07:15:12 -0500
committerPatrick Williams <patrick@stwcx.xyz>2016-10-16 18:17:20 -0500
commit04e007f17c9f21cfee922d811a4433dd11243d39 (patch)
tree75d4d42eec33b5280c8fe17f8e8cb6d09fc506b6 /tools/sdbus++
parente70f0e8b42627b355dc402bb0bc006d07cfef274 (diff)
downloadsdbusplus-04e007f17c9f21cfee922d811a4433dd11243d39.tar.gz
sdbusplus-04e007f17c9f21cfee922d811a4433dd11243d39.zip
sdbus++: generate header for server bindings
Add a 'server-header' command to sdbus++ that generates a class definition for the server bindings. This class defines static functions for registering as sd-bus callbacks and virtual C++ functions to implement the method behavior. It is expected that a server implementation will create a class, which inherits from this generated class, and implement all of the method behaviors. Instances of the class will then register on construction with sd-bus. Signals and properties are not yet supported. Change-Id: If0ec37b2acb6f8d528358004ec91dbe979644df7 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Diffstat (limited to 'tools/sdbus++')
-rwxr-xr-xtools/sdbus++3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/sdbus++ b/tools/sdbus++
index e68685d..6606d07 100755
--- a/tools/sdbus++
+++ b/tools/sdbus++
@@ -5,7 +5,8 @@ import argparse
def main():
valid_types = { 'interface': sdbusplus.Interface }
- valid_processes = { 'markdown' : "markdown" }
+ valid_processes = { 'markdown' : "markdown",
+ 'server-header' : "server_header" }
parser = argparse.ArgumentParser(description='Process sdbus++ YAML files.')
OpenPOWER on IntegriCloud