X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fhelper-api.c;h=912093bbdba33bfd6b1c8117deafeae425ae42a5;hb=ca208671cc79bbc05c574df788035878e5d39382;hp=bf94c8989c76632426a9b5aa2bcc20ee806ff4f9;hpb=9c9253cd9106e656195aba6f0cadb29f6a940fe1;p=src%2Fapp-framework-binder.git diff --git a/src/helper-api.c b/src/helper-api.c index bf94c898..912093bb 100644 --- a/src/helper-api.c +++ b/src/helper-api.c @@ -38,12 +38,12 @@ typedef struct { json_object *json; } AFB_errorT; -static AFB_errorT AFBerr [AFB_SUCCESS+1]; +static AFB_errorT AFBerr [AFB_UNAUTH+1]; static json_object *jTypeStatic; PUBLIC int verbose; -static const char *ERROR_LABEL[] = {"false", "true", "fatal", "fail", "warning", "empty", "success"}; +static const char *ERROR_LABEL[] = {"false", "true", "fatal", "fail", "warning", "empty", "success", "done", "unauth"}; @@ -225,7 +225,7 @@ static void jsoninit() verbosesav = verbose; verbose = 0; // run initialisation in silent mode jTypeStatic = json_object_new_string ("AFB_message"); - for (idx = 0; idx <= AFB_SUCCESS; idx++) { + for (idx = 0; idx <= AFB_UNAUTH; idx++) { AFBerr[idx].level = idx; AFBerr[idx].label = ERROR_LABEL [idx]; AFBerr[idx].json = jsonNewMessage (idx, NULL);