summaryrefslogtreecommitdiffstats
path: root/ahl-binding/role.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ahl-binding/role.cpp')
-rw-r--r--ahl-binding/role.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/ahl-binding/role.cpp b/ahl-binding/role.cpp
index f0f744f..9338436 100644
--- a/ahl-binding/role.cpp
+++ b/ahl-binding/role.cpp
@@ -34,6 +34,7 @@ role_t::role_t(json_object* j)
jcast(description_, j, "description");
jcast(priority_, j, "priority");
jcast(stream_, j, "stream");
+ jcast_array(interrupts_, j, "interrupts");
}
role_t& role_t::operator<<(json_object* j)
@@ -43,6 +44,7 @@ role_t& role_t::operator<<(json_object* j)
jcast(description_, j, "description");
jcast(priority_, j, "priority");
jcast(stream_, j, "stream");
+ jcast_array(interrupts_, j, "interrupts");
return *this;
}
@@ -105,3 +107,8 @@ void role_t::device_uri(std::string v)
{
device_uri_ = v;
}
+
+const std::vector<interrupt_t>& role_t::interrupts() const
+{
+ return interrupts_;
+}