diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2017-02-23 14:09:30 +0000 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2017-02-23 14:09:30 +0000 |
commit | d59970dce571c1753174124326406ec1ff8e2ce8 (patch) | |
tree | 9d58203f97dc15353502f49a401fca383b00dd35 /src/low-can-binding.cpp | |
parent | b0975e4bfa534153657a7ee8acaee0f950056e97 (diff) |
Make binder_interface global variable rather than
pass it over and over through class and functions
Change-Id: Ie32d44126a41125c6c45d18663b668328df44e2d
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'src/low-can-binding.cpp')
-rw-r--r-- | src/low-can-binding.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/low-can-binding.cpp b/src/low-can-binding.cpp index 87c94d54..9e344018 100644 --- a/src/low-can-binding.cpp +++ b/src/low-can-binding.cpp @@ -136,7 +136,7 @@ static int subscribe_unsubscribe_name(struct afb_req request, bool subscribe, co else { openxc_DynamicField search_key = build_DynamicField(name); - sig = find_can_signals(binder_interface, search_key); + sig = find_can_signals(search_key); if (sig.empty()) ret = 0; } @@ -221,7 +221,7 @@ extern "C" fd_conf = afb_daemon_rootdir_open_locale(binder_interface->daemon, "can_bus.json", O_RDONLY, NULL); /* Open CAN socket */ - can_bus_t can_bus_handler(binder_interface, fd_conf); + can_bus_t can_bus_handler(fd_conf); if(can_bus_handler.init_can_dev() == 0) { can_bus_handler.start_threads(); |