diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2017-12-18 14:03:53 +0100 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2017-12-18 14:03:53 +0100 |
commit | 9fe1a36ddfc85638958681dc3f929d47df117cd3 (patch) | |
tree | 1b92edbe82507692ec684297edd5b32b2cbf2c8e /plugins/low-can.cpp | |
parent | 41ea8b75daa57b1c7259bd42c7e5bc16f33b38ec (diff) |
Several small fixes and improvements.
Cleaning
Make some additionnals test avoiding segfault,
Filling opitonnal response object to avoid warning
Wrong plugins type register macro called
Change-Id: I012cc3ddc5f89b75dbc46c3ea535717141823884
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'plugins/low-can.cpp')
-rw-r--r-- | plugins/low-can.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/low-can.cpp b/plugins/low-can.cpp index 27089e1..5d4ef10 100644 --- a/plugins/low-can.cpp +++ b/plugins/low-can.cpp @@ -17,20 +17,18 @@ */ #define AFB_BINDING_VERSION 2 +#define CTL_PLUGIN_MAGIC 1286576532 #include <afb/afb-binding.h> #include <systemd/sd-event.h> #include <json-c/json_object.h> #include <stdbool.h> #include <string.h> -#include "ctl-plugin.h" -#include "wrap-json.h" - #include "signal-composer.hpp" +#include "wrap-json.h" extern "C" { - CTLP_CAPI_REGISTER("low-can"); typedef struct { |