summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam A. Kennington III <wak@google.com>2019-04-03 20:41:05 -0700
committerWilliam A. Kennington III <wak@google.com>2019-04-03 20:43:17 -0700
commit76f07322361e5289c914e8289d1d986b0864bc94 (patch)
treef8ede6e162572092b30fe634be30aa4ceddf813b
parent3cf374edeba12ac21eb1f9666e95712e50ac7872 (diff)
downloadsdbusplus-76f07322361e5289c914e8289d1d986b0864bc94.tar.gz
sdbusplus-76f07322361e5289c914e8289d1d986b0864bc94.zip
sdbus++: Allow server.hpp files to have extra generated includes
This allows for a future change that adds includes to the generated server.hpp file that it needs for enum definitions. Change-Id: Id8ecd03a8cc1155cc9032840f38bf5ccb28d40c0 Signed-off-by: William A. Kennington III <wak@google.com>
-rw-r--r--tools/sdbusplus/templates/interface.mako.server.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/sdbusplus/templates/interface.mako.server.hpp b/tools/sdbusplus/templates/interface.mako.server.hpp
index 0774fe5..93cf6e7 100644
--- a/tools/sdbusplus/templates/interface.mako.server.hpp
+++ b/tools/sdbusplus/templates/interface.mako.server.hpp
@@ -3,6 +3,9 @@
#include <systemd/sd-bus.h>
#include <sdbusplus/sdbus.hpp>
#include <sdbusplus/server.hpp>
+% for m in interface.methods + interface.properties + interface.signals:
+${ m.cpp_prototype(loader, interface=interface, ptype='callback-hpp-includes') }
+% endfor
<%
namespaces = interface.name.split('.')
classname = namespaces.pop()
OpenPOWER on IntegriCloud