diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2017-05-31 12:46:02 +0200 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2017-06-01 18:22:49 +0200 |
commit | 1f4eb8c5562bf5c0bc6ebd1b35977cd71d9b3a83 (patch) | |
tree | 0373a64035f894a7b18139306cbf879989d28268 /CAN-binder/low-can-binding/binding/low-can-hat.hpp | |
parent | c28f479a597de89f38b2bbd155afc26c7f2de822 (diff) |
Reworked subscription to integrate filtering.
- Creation of an object which old the subscription context
(filter, signal) : low_can_subscription_t
- Move socket from can_signal_t to this new object.
- Adding a member to can_message_t to transport subscription_id to be able to
retrieve it with all the context through running.
Change-Id: I87be8cd6c3c93a81040357920d8c081a316800c3
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'CAN-binder/low-can-binding/binding/low-can-hat.hpp')
-rw-r--r-- | CAN-binder/low-can-binding/binding/low-can-hat.hpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/CAN-binder/low-can-binding/binding/low-can-hat.hpp b/CAN-binder/low-can-binding/binding/low-can-hat.hpp index c0756f81..a1c8dad1 100644 --- a/CAN-binder/low-can-binding/binding/low-can-hat.hpp +++ b/CAN-binder/low-can-binding/binding/low-can-hat.hpp @@ -31,13 +31,7 @@ extern "C" struct afb_binding_interface; extern const struct afb_binding_interface *binder_interface; -struct event_filter_t { - double frequency; - double min; - double max; -}; - -void on_no_clients(std::string message); +void on_no_clients(const std::string& message); int read_message(sd_event_source *s, int fd, uint32_t revents, void *userdata); void subscribe(struct afb_req request); |