Age | Commit message (Collapse) | Author | Files | Lines |
|
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Change-Id: I01a566a693b8ec6239209c9323ae4ff15a07f737
|
|
GCC-9.1.1 complains about variable ‘buf[0]’ that it may be used uninitialized
in the function 'make_info()'. This patchset initialize the variable.
Bug-AGL: SPEC-2482
Signed-off-by: Bechir Mghirbi <bechir.mghirbi@grammer.com>
Change-Id: I38d0c6f47fed462f4ea48990c4cb63f21fb2ee16
|
|
At the end, the case is never reached because
json_object_to_json_string_ext only produces
valid JSON strings and a string terminated by
'\' isn't a valid JSON string.
Change-Id: I58a6dc4d9c014487ff2dc85f7eb3dbf33ffea6b1
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
|
|
Change-Id: I3aaa92b2bfb01699ee8ae609272e93032b6f1a9d
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
|
|
The C++ compiler is too much strict. It doesn't accept
valid C because fields are in the wrong order or missing.
- afb_verb_t generated structure invert vcbdata and session
- missing provide_class, require_class, require_api in the
afb_binding_v3 generated struct
The signature of the declared function was wrong.
- wrong verb's callback signature void fun(afb_req) instead of
void fun(afb_req_t)
This add the declaration of the (pre)initialization and onevent functions.
- missing init function signation generation, or probably preinit and
onevent (not tested those ones)
Bug-AGL: SPEC-1806
Change-Id: I1abf8a29f831ecc80458edcd3bd094b2108dc227
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
|
|
The library json-c now returns size_t instead of
int when querying length of arrays.
Change-Id: Id52bb8e77da12cb01e61e1a7c7f4ae2fcbe4634e
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
|
|
This commit introduces the bindings v3 API for bindings.
The documentation has still to be improved and will come
very soon.
Change-Id: I8f9007370e29f671fdfd1da87fff7372a17db7af
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
|
|
Change-Id: If9d7e7728df086fbb7214f1de5cbec35cd2f1d9b
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
|
|
The new verb session is available to get session info and
to renew the token. See examples below.
The permission required is now just to being check
meaning having the token.
Example:
afb-client-demo -H localhost:5555/api?token=456
monitor session
ON-REPLY 1:monitor/session: OK
{
"response":{
"uuid":"5a30c118-319c-43a2-82d5-fc2198d01938",
"token":"",
"timeout":32000000,
"remain":31999985
},
"jtype":"afb-reply",
"request":{
"status":"success",
"uuid":"5a30c118-319c-43a2-82d5-fc2198d01938"
}
}
monitor session {"refresh-token":true}
ON-REPLY 5:monitor/session: OK
{
"response":{
"uuid":"5a30c118-319c-43a2-82d5-fc2198d01938",
"token":"2f60faf8-ad04-457e-9f56-5c0c20b5f1fc",
"timeout":32000000,
"remain":32000000
},
"jtype":"afb-reply",
"request":{
"status":"success",
"token":"2f60faf8-ad04-457e-9f56-5c0c20b5f1fc"
}
}
Change-Id: Ic93bae80616e5dad1640e73ac9f472b7b385104f
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
|
|
Change-Id: Ieba4032bed526ca158dc69558177a038df95988b
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
|
|
Change-Id: I0cd2d09f97fac7a1976d2bfcd5ab616472bf970a
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
|
|
The option --cpp or -x tell to produce a C++ output
that uses the 'constexpr' c++ feature.
Change-Id: I4eda4d21260573acbb01057ed95476bd4fc7ebe5
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
|
|
The option ALLOW_NO_BINDER is removed and the option
ONLY_DEVTOOLS is introduced.
Change-Id: Ia19eb977ee25a3871582605028fdef75e552363f
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
|