xref: /openbmc/phosphor-dbus-monitor/src/templates/conditional.mako.cpp (revision 223c40931e4f413431ab2f84d92c5f404e2d9cf2)
13539db64SBrad Bishop % if c.defer:
2*223c4093SWilliam A. Kennington III std::make_unique<DeferrableCallback<ConfigPropertyCallbacks>>(
33539db64SBrad Bishop ${indent(1)}ConfigPropertyCallbackGroups::get()[${c.graph}],
43539db64SBrad Bishop ${indent(1)}*ConfigConditions::get()[${c.condition}],
53539db64SBrad Bishop ${indent(1)}${c.defer})\
63539db64SBrad Bishop % else:
74041d720SBrad Bishop std::make_unique<ConditionalCallback<ConfigPropertyCallbacks>>(
84041d720SBrad Bishop ${indent(1)}ConfigPropertyCallbackGroups::get()[${c.graph}],
94041d720SBrad Bishop ${indent(1)}*ConfigConditions::get()[${c.condition}])\
103539db64SBrad Bishop % endif\
11