summaryrefslogtreecommitdiffstats
path: root/ahl-binding/role.hpp
diff options
context:
space:
mode:
authorLoïc Collignon <loic.collignon@iot.bzh>2018-06-07 15:05:53 +0200
committerStephane Desneux <stephane.desneux@iot.bzh>2018-06-12 16:23:44 +0200
commit9a631c30c9c8792865ce2aa0ec06a1bb5fd16751 (patch)
treee1bd8c4ce3cc408144aedcf0f26fd873d8db8634 /ahl-binding/role.hpp
parent322f8932476eda944c7d3ac65eafde12c69b2ae9 (diff)
Add some policy emulation
Add a very simplistic policy emulation just for demo. The real policy engine will be brought back soon. Change-Id: I6f77c8dc58ba335eabd1a1d858354a84559d9e7f Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
Diffstat (limited to 'ahl-binding/role.hpp')
-rw-r--r--ahl-binding/role.hpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/ahl-binding/role.hpp b/ahl-binding/role.hpp
index 5b3d6b1..fa1bcd4 100644
--- a/ahl-binding/role.hpp
+++ b/ahl-binding/role.hpp
@@ -17,7 +17,8 @@
* limitations under the License.
*/
-#include "jsonc_utils.hpp"
+#include <vector>
+#include "interrupt.hpp"
class role_t
{
@@ -28,6 +29,7 @@ private:
std::string stream_;
std::string device_uri_;
int priority_;
+ std::vector<interrupt_t> interrupts_;
public:
explicit role_t() = default;
@@ -50,6 +52,7 @@ public:
std::string stream() const;
int priority() const;
std::string device_uri() const;
+ const std::vector<interrupt_t>& interrupts() const;
void uid(std::string v);
void name(std::string v);