summaryrefslogtreecommitdiffstats
path: root/ahl-binding/interrupt.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'ahl-binding/interrupt.hpp')
-rw-r--r--ahl-binding/interrupt.hpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/ahl-binding/interrupt.hpp b/ahl-binding/interrupt.hpp
index caf5cda..c123699 100644
--- a/ahl-binding/interrupt.hpp
+++ b/ahl-binding/interrupt.hpp
@@ -1,12 +1,19 @@
#pragma once
-
+#include <vector>
+#include <string>
+#include <tuple>
+#include "afb-binding-common.h"
#include "jsonc_utils.hpp"
+// Forward declaration
+class role_t;
+
class interrupt_t
{
private:
std::string type_;
json_object* args_;
+ std::vector<std::tuple<std::string, uint32_t>> applied_on_;
public:
explicit interrupt_t() = default;
@@ -25,4 +32,6 @@ public:
void type(std::string v);
void args(json_object* v);
+ int apply(afb_req_t req, const role_t& role);
+ void clear();
};