X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=bindings%2Fintrinsics%2Fafb-dbus-binding.c;h=7a1bec5437e64d2a2eb173256b5674b2bde2a000;hb=3c7a1f5c28c23e5d0a933db19993d9c71fe6a3a2;hp=59fe78d60038f4de6f1aae5e75aa2a4d7f1c49df;hpb=7059e59cddc1c81321639875636e88895bc14309;p=src%2Fapp-framework-binder.git diff --git a/bindings/intrinsics/afb-dbus-binding.c b/bindings/intrinsics/afb-dbus-binding.c index 59fe78d6..7a1bec54 100644 --- a/bindings/intrinsics/afb-dbus-binding.c +++ b/bindings/intrinsics/afb-dbus-binding.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2016 "IoT.bzh" + * Copyright (C) 2016, 2017 "IoT.bzh" * Author José Bollo * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -23,6 +23,7 @@ #include #include +#define AFB_BINDING_VERSION 1 #include /* @@ -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)