X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=plugins%2Fsamples%2FSamplePost.c;h=8a1b477a7d4bac7f14364effa7b60209acd0e565;hb=5d088cbac7130e9ec8655218acb15dd22b20a7f8;hp=aab54e91f7117e9f44d878fb1c3e08350f8c98c0;hpb=c0453c34a58aac8150300ab829149a0ca4d9e5ee;p=src%2Fapp-framework-binder.git diff --git a/plugins/samples/SamplePost.c b/plugins/samples/SamplePost.c index aab54e91..8a1b477a 100644 --- a/plugins/samples/SamplePost.c +++ b/plugins/samples/SamplePost.c @@ -31,8 +31,9 @@ static int fillargs(json_object *args, struct afb_arg arg) obj = json_object_new_object(); json_object_object_add (obj, "value", json_object_new_string(arg.value)); + if (arg.path != NULL) + json_object_object_add (obj, "path", json_object_new_string(arg.path)); json_object_object_add (obj, "size", json_object_new_int64((int64_t)arg.size)); - json_object_object_add (obj, "is_file", json_object_new_boolean(arg.is_file)); json_object_object_add (args, arg.name && *arg.name ? arg.name : "", obj); return 1; /* continue to iterate */ }