X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=CAN-binder%2Flow-can-binding%2Fbinding%2Flow-can-hat.hpp;h=233d798736361f3e5769231971463662a336b9de;hb=2e66a10937ca8189498b540e3e28047d829021ad;hp=57c0a536078fb8e69a8f75da77b7d044436716d9;hpb=4f1b1d088afe8eb9a5b75287429104e4175e97e7;p=apps%2Fagl-service-can-low-level.git 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 57c0a536..233d7987 100644 --- a/CAN-binder/low-can-binding/binding/low-can-hat.hpp +++ b/CAN-binder/low-can-binding/binding/low-can-hat.hpp @@ -19,7 +19,9 @@ #pragma once #include +#include #include +#include #include extern "C" @@ -31,9 +33,11 @@ extern "C" struct afb_binding_interface; extern const struct afb_binding_interface *binder_interface; -void on_no_clients(std::string message); -int read_can_signal(sd_event_source *s, int fd, uint32_t revents, void *userdata); -int read_diagnostic_message(sd_event_source *s, int fd, uint32_t revents, void *userdata); +class low_can_subscription_t; + +void on_no_clients(std::shared_ptr can_subscription, std::map >& s); +void on_no_clients(std::shared_ptr can_subscription, uint32_t pid, std::map >& s); +int read_message(sd_event_source *s, int fd, uint32_t revents, void *userdata); void subscribe(struct afb_req request); void unsubscribe(struct afb_req request); \ No newline at end of file