summaryrefslogtreecommitdiffstats
path: root/src/templates
diff options
context:
space:
mode:
Diffstat (limited to 'src/templates')
-rw-r--r--src/templates/event.mako.cpp2
-rw-r--r--src/templates/generated.mako.hpp1
2 files changed, 3 insertions, 0 deletions
diff --git a/src/templates/event.mako.cpp b/src/templates/event.mako.cpp
new file mode 100644
index 0000000..e5ac850
--- /dev/null
+++ b/src/templates/event.mako.cpp
@@ -0,0 +1,2 @@
+std::make_unique<Event<${c.datatype}>>("${c.eventName}"s, "${c.eventMessage}"s,
+${indent(1)}ConfigPropertyIndicies::get()[${c.instances}])\
diff --git a/src/templates/generated.mako.hpp b/src/templates/generated.mako.hpp
index 740acfa..4a5b87c 100644
--- a/src/templates/generated.mako.hpp
+++ b/src/templates/generated.mako.hpp
@@ -14,6 +14,7 @@
#include "propertywatchimpl.hpp"
#include "resolve_errors.hpp"
#include "sdbusplus.hpp"
+#include "event.hpp"
#include "sdevent.hpp"
using namespace std::string_literals;
OpenPOWER on IntegriCloud