Updated triggers, implemented LIVE_BANDWIDTH trigger
This commit is contained in:
parent
6a68d86a0e
commit
cab87a6425
6 changed files with 319 additions and 324 deletions
|
@ -1,14 +1,15 @@
|
|||
#pragma once
|
||||
#include <string>
|
||||
|
||||
namespace Triggers{
|
||||
bool doTrigger(const std::string triggerType, const std::string &payload, const std::string &streamName, bool dryRun, std::string & response);
|
||||
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);
|
||||
|
||||
//All of the below are just shorthands for specific usage of the doTrigger function above:
|
||||
bool shouldTrigger(const std::string triggerType);
|
||||
bool shouldTrigger(const std::string triggerType, const std::string &streamName);
|
||||
bool doTrigger(const std::string triggerType);
|
||||
bool doTrigger(const std::string triggerType, const std::string &payload);
|
||||
bool doTrigger(const std::string triggerType, const std::string &payload, const std::string &streamName);
|
||||
// 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);
|
||||
bool doTrigger(const std::string & triggerType, const std::string & payload = empty, const std::string & streamName = empty);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue