genskel: Add afb:: namespace prefix
[src/app-framework-binder.git] / bindings / intrinsics / afb-dbus-binding.c
index 59fe78d..7a1bec5 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2016 "IoT.bzh"
+ * Copyright (C) 2016, 2017 "IoT.bzh"
  * Author José Bollo <jose.bollo@iot.bzh>
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -23,6 +23,7 @@
 #include <systemd/sd-bus.h>
 #include <systemd/sd-bus-protocol.h>
 
+#define AFB_BINDING_VERSION 1
 #include <afb/afb-binding.h>
 
 /*
@@ -52,7 +53,7 @@ static int packlist(struct sd_bus_message *msg, const char *signature, struct js
 /*
  * Get the string of 'key' from 'obj'
  * Returns NULL if 'key' isn't in 'obj'
- */ 
+ */
 static const char *strval(struct json_object *obj, const char *key)
 {
        struct json_object *keyval;
@@ -110,7 +111,7 @@ static int lentype(const char *signature, int allows_dict, int allows_not_basic)
                }
                if (rc < 0)
                        break;
-               return 1 + len;         
+               return 1 + len;
 
        case SD_BUS_TYPE_DICT_ENTRY_BEGIN:
                if (!allows_not_basic || !allows_dict)