diff options
author | José Bollo <jose.bollo@iot.bzh> | 2016-07-08 16:49:31 +0200 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2016-07-08 16:49:31 +0200 |
commit | 62544e9874564fb62085a748f7e27f710b38a404 (patch) | |
tree | cd0ed5529f7ad3c23109ea8579080eb32cfd4655 | |
parent | 00eb71805ccf4b2c47ba8322fd5d8bb85c44ae0e (diff) |
using service for initialisation
Change-Id: I1792c2acb5bbd8fbd1e7760ecefe265909c5008f
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
-rw-r--r-- | src/af-gps-binding.c | 9 | ||||
-rw-r--r-- | src/export.map | 2 |
2 files changed, 6 insertions, 5 deletions
diff --git a/src/af-gps-binding.c b/src/af-gps-binding.c index f404b83..080f1e5 100644 --- a/src/af-gps-binding.c +++ b/src/af-gps-binding.c @@ -32,6 +32,7 @@ #include <systemd/sd-event.h> #include <afb/afb-binding.h> +#include <afb/afb-service-itf.h> #define NAUTICAL_MILE_IN_METER 1852 #define MILE_IN_METER 1609.344 @@ -1041,10 +1042,10 @@ static const struct afb_binding binding_description = const struct afb_binding *afbBindingV1Register(const struct afb_binding_interface *itf) { afbitf = itf; /* records the interface for accessing afb-daemon */ - - connection(); - return &binding_description; /* returns the description of the binding */ } - +int afbBindingV1ServiceInit(struct afb_service service) +{ + return connection(); +} diff --git a/src/export.map b/src/export.map index 0ef1ac7..52c1b4a 100644 --- a/src/export.map +++ b/src/export.map @@ -1 +1 @@ -{ global: afbBindingV1Register; local: *; }; +{ global: afbBindingV1*; local: *; }; |