aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/af-gps-binding.c9
-rw-r--r--src/export.map2
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: *; };