X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=bindings%2Fsamples%2FAuthLogin.c;h=9570bc5d9e6da149c78c758711f00697c83eefad;hb=65353dce81a629e042800bb7b86fcd869a76727e;hp=0f29dd0dcec0f161b0b5e6ad8bb6029990342af0;hpb=4521c1e7ae5371ab9d639adc617d17fb4e8ded0c;p=src%2Fapp-framework-binder.git diff --git a/bindings/samples/AuthLogin.c b/bindings/samples/AuthLogin.c index 0f29dd0d..9570bc5d 100644 --- a/bindings/samples/AuthLogin.c +++ b/bindings/samples/AuthLogin.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2015-2018 "IoT.bzh" + * Copyright (C) 2015-2020 "IoT.bzh" * Author "Fulup Ar Foll" * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -71,7 +71,7 @@ static void clientContextRefresh (afb_req_t request) { static void clientContextCheck (afb_req_t request) { json_object *jresp = json_object_new_object(); - json_object_object_add(jresp, "isvalid", json_object_new_boolean (TRUE)); + json_object_object_add(jresp, "isvalid", json_object_new_boolean (1)); afb_req_success(request, jresp, NULL); } @@ -112,7 +112,7 @@ static const struct afb_verb_v3 verbs[]= { {.verb="refresh" , .session=AFB_SESSION_LOA_1 | AFB_SESSION_RENEW, .callback=clientContextRefresh,.info="Refresh Client Authentication Token"}, {.verb="check" , .session=AFB_SESSION_LOA_1 , .callback=clientContextCheck ,.info="Check Client Authentication Token"}, {.verb="logout" , .session=AFB_SESSION_LOA_1 | AFB_SESSION_CLOSE, .callback=clientContextLogout ,.info="Logout Client and Free resources"}, - {NULL} + {0, 0, 0, 0, 0, 0, 0} }; const struct afb_binding_v3 afbBindingV3 =