summaryrefslogtreecommitdiffstats
path: root/ahl-binding/ahl-binding.hpp
diff options
context:
space:
mode:
authorLoïc Collignon <loic.collignon@iot.bzh>2018-12-18 10:37:24 +0100
committerLoïc Collignon <loic.collignon@iot.bzh>2018-12-18 12:50:04 +0100
commit256b802be755e6e4d0f8bd4540c798c847b622db (patch)
treee1c3edcea4a1a6cbce6ad10d2a0c506677847d35 /ahl-binding/ahl-binding.hpp
parent22c3fc2ae2ba2125bc3af55ab8e6de4bc4102ac6 (diff)
Fix indentation and trailing whitespaces
Convert every indentation to tab instead of spaces and get rid of mixed tab/spaces indentations. Also remove few trailing whitespaces. Change-Id: Ic4a8f2adcacb99789a403aefe6a16daaffee5cd6 Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
Diffstat (limited to 'ahl-binding/ahl-binding.hpp')
-rw-r--r--ahl-binding/ahl-binding.hpp52
1 files changed, 26 insertions, 26 deletions
diff --git a/ahl-binding/ahl-binding.hpp b/ahl-binding/ahl-binding.hpp
index 24f4acb..9e670bb 100644
--- a/ahl-binding/ahl-binding.hpp
+++ b/ahl-binding/ahl-binding.hpp
@@ -36,41 +36,41 @@
class ahl_binding_t
{
- using role_action = std::function<void(afb_req_t, std::string, std::string, json_object*)>;
+ using role_action = std::function<void(afb_req_t, std::string, std::string, json_object*)>;
private:
- afb_api_t handle_;
- afb_event_t volume_changed_;
- std::vector<role_t> roles_;
+ afb_api_t handle_;
+ afb_event_t volume_changed_;
+ std::vector<role_t> roles_;
- explicit ahl_binding_t();
+ explicit ahl_binding_t();
- void load_static_verbs();
+ void load_static_verbs();
- void load_controller_configs();
- int load_controller_config(const std::string& path);
- int update_streams();
- void update_stream(std::string hal, std::string stream, std::string deviceuri);
- int create_api_verb(role_t* r);
+ void load_controller_configs();
+ int load_controller_config(const std::string& path);
+ int update_streams();
+ void update_stream(std::string hal, std::string stream, std::string deviceuri);
+ int create_api_verb(role_t* r);
- void policy_open(afb_req_t req, const role_t& role);
+ void policy_open(afb_req_t req, const role_t& role);
public:
- static ahl_binding_t& instance();
- int preinit(afb_api_t handle);
- int init();
- void event(std::string name, json_object* arg);
- void get_roles(afb_req_t req) const;
- void subscribe(afb_req_t req) const;
- void unsubscribe(afb_req_t req) const;
- int emit_volume_changed(const std::string& role, int volume) const;
-
- const std::vector<role_t> roles() const;
- afb_api_t handle() const;
-
- void audiorole(afb_req_t req);
- int parse_roles_config(json_object* o);
+ static ahl_binding_t& instance();
+ int preinit(afb_api_t handle);
+ int init();
+ void event(std::string name, json_object* arg);
+ void get_roles(afb_req_t req) const;
+ void subscribe(afb_req_t req) const;
+ void unsubscribe(afb_req_t req) const;
+ int emit_volume_changed(const std::string& role, int volume) const;
+
+ const std::vector<role_t> roles() const;
+ afb_api_t handle() const;
+
+ void audiorole(afb_req_t req);
+ int parse_roles_config(json_object* o);
};