1/* Events for ${events.name} 2 * Version: ${events.version} 3 */ 4#pragma once 5#include <sys/syslog.h> 6#include <unistd.h> 7 8#include <sdbusplus/exception.hpp> 9#include <sdbusplus/message.hpp> 10 11#include <cerrno> 12#include <source_location> 13 14% for h in events.cpp_includes(): 15#include <${h}> 16% endfor 17%if events.errors: 18 19namespace sdbusplus::error::${events.cppNamespacedClass()} 20{ 21% for e in events.errors: 22 23${events.render(loader, "event.hpp.mako", events=events, event=e)}\ 24% endfor 25 26} // namespace sdbusplus::error::${events.cppNamespacedClass()} 27%endif 28%if events.events: 29 30namespace sdbusplus::event::${events.cppNamespacedClass()} 31{ 32% for e in events.events: 33 34${events.render(loader, "event.hpp.mako", events=events, event=e)}\ 35% endfor 36 37} // namespace sdbusplus::event::${events.cppNamespacedClass()} 38%endif 39