From 62544e9874564fb62085a748f7e27f710b38a404 Mon Sep 17 00:00:00 2001 From: José Bollo Date: Fri, 8 Jul 2016 16:49:31 +0200 Subject: using service for initialisation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I1792c2acb5bbd8fbd1e7760ecefe265909c5008f Signed-off-by: José Bollo --- src/af-gps-binding.c | 9 +++++---- src/export.map | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) (limited to 'src') 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 #include +#include #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: *; }; -- cgit 1.2.3-korg