summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/sdbusplus/templates/interface.mako.server.hpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/sdbusplus/templates/interface.mako.server.hpp b/tools/sdbusplus/templates/interface.mako.server.hpp
index 99ba769..1825d6b 100644
--- a/tools/sdbusplus/templates/interface.mako.server.hpp
+++ b/tools/sdbusplus/templates/interface.mako.server.hpp
@@ -121,6 +121,18 @@ ${p.camelCase}(${p.cppTypeParam(interface.name)} value);
static ${e.name} convert${e.name}FromString(const std::string& s);
% endfor
+ /** @brief Emit interface added */
+ void emit_added()
+ {
+ _${"_".join(interface.name.split('.'))}_interface.emit_added();
+ }
+
+ /** @brief Emit interface removed */
+ void emit_removed()
+ {
+ _${"_".join(interface.name.split('.'))}_interface.emit_removed();
+ }
+
static constexpr auto interface = "${interface.name}";
private:
OpenPOWER on IntegriCloud