afb-binding.hpp: Fix constexpr of 'binding' 5.0.0 eel/5.0.0 eel_5.0.0
authorJosé Bollo <jose.bollo@iot.bzh>
Tue, 2 Jan 2018 12:28:42 +0000 (13:28 +0100)
committerJosé Bollo <jose.bollo@iot.bzh>
Wed, 3 Jan 2018 08:41:41 +0000 (09:41 +0100)
Change-Id: Icdee4029f11dcb6c0f75e945e0b411ea63654afe
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
include/afb/afb-binding.hpp

index 6e7d4c2..5942f76 100644 (file)
@@ -585,7 +585,7 @@ constexpr afb_verb_v2 verbend()
        return r;
 }
 
-const afb_binding_v2 binding(const char *name, const struct afb_verb_v2 *verbs, const char *info = nullptr, int (*init)() = nullptr, const char *specification = nullptr, void (*onevent)(const char*, struct json_object*) = nullptr, bool noconcurrency = false, int (*preinit)() = nullptr)
+constexpr afb_binding_v2 binding(const char *name, const struct afb_verb_v2 *verbs, const char *info = nullptr, int (*init)() = nullptr, const char *specification = nullptr, void (*onevent)(const char*, struct json_object*) = nullptr, bool noconcurrency = false, int (*preinit)() = nullptr)
 {
        afb_binding_v2 r = { 0, 0, 0, 0, 0, 0, 0, 0 };
        r.api = name;