aboutsummaryrefslogtreecommitdiffstats
path: root/src/af-gps-binding.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/af-gps-binding.c')
-rw-r--r--src/af-gps-binding.c9
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();
+}