summaryrefslogtreecommitdiffstats
path: root/ahl-binding/role.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'ahl-binding/role.hpp')
-rw-r--r--ahl-binding/role.hpp16
1 files changed, 13 insertions, 3 deletions
diff --git a/ahl-binding/role.hpp b/ahl-binding/role.hpp
index 055a405..5623f83 100644
--- a/ahl-binding/role.hpp
+++ b/ahl-binding/role.hpp
@@ -21,6 +21,13 @@
#include "interrupt.hpp"
#include "afb-binding-common.h"
+enum class restype_t
+{
+ stream,
+ playback,
+ control
+};
+
class role_t
{
private:
@@ -28,9 +35,10 @@ private:
std::string uid_;
std::string description_;
std::string hal_;
- std::string stream_;
+ std::string resource_;
int priority_;
std::vector<interrupt_t> interrupts_;
+ restype_t rtype_;
std::string device_uri_;
bool opened_ = false;
@@ -58,7 +66,8 @@ public:
std::string uid() const;
std::string description() const;
std::string hal() const;
- std::string stream() const;
+ std::string resource() const;
+ restype_t rtype() const;
int priority() const;
const std::vector<interrupt_t>& interrupts() const;
std::string device_uri() const;
@@ -67,7 +76,8 @@ public:
void uid(std::string v);
void description(std::string v);
void hal(std::string v);
- void stream(std::string v);
+ void resource(std::string v);
+ void rtype(restype_t v);
void device_uri(std::string v);
void priority(int v);