X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=include%2Fafb%2Fafb-binding.hpp;h=5942f76c9ef616d20a0abde55d7ee125651ab9f4;hb=9c1c9a1ba46eb9ddada4167ce9d20143ee3c9636;hp=6e7d4c2e271c63f8892b5a86c07eaf307b67fd82;hpb=a1069bceb51ca4472d121eb205f2a3082e5dcda3;p=src%2Fapp-framework-binder.git diff --git a/include/afb/afb-binding.hpp b/include/afb/afb-binding.hpp index 6e7d4c2e..5942f76c 100644 --- a/include/afb/afb-binding.hpp +++ b/include/afb/afb-binding.hpp @@ -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;