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 /src/af-gps-binding.c | |
parent | 00eb71805ccf4b2c47ba8322fd5d8bb85c44ae0e (diff) |
using service for initialisation
Change-Id: I1792c2acb5bbd8fbd1e7760ecefe265909c5008f
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/af-gps-binding.c')
-rw-r--r-- | src/af-gps-binding.c | 9 |
1 files changed, 5 insertions, 4 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(); +} |