Added support for default responses in triggers, added maximum execution time for triggers
This commit is contained in:
parent
ca8257d96b
commit
f61e50cbd5
3 changed files with 35 additions and 9 deletions
|
@ -6,7 +6,7 @@ namespace Triggers{
|
|||
static const std::string empty;
|
||||
|
||||
bool doTrigger(const std::string & triggerType, const std::string &payload, const std::string &streamName, bool dryRun, std::string &response, bool paramsCB(const char *, const void *) = 0, const void * extraParam = 0);
|
||||
std::string handleTrigger(const std::string &triggerType, const std::string &value, const std::string &payload, int sync);
|
||||
std::string handleTrigger(const std::string &triggerType, const std::string &value, const std::string &payload, int sync, const std::string &defaultResponse);
|
||||
|
||||
// All of the below are just shorthands for specific usage of the doTrigger function above:
|
||||
bool shouldTrigger(const std::string & triggerType, const std::string &streamName = empty, bool paramsCB(const char *, const void *) = 0, const void * extraParam = 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue