aboutsummaryrefslogtreecommitdiffstats
path: root/binding
diff options
context:
space:
mode:
authorVitaly Wool <vitaly.wool@konsulko.com>2019-02-05 18:48:25 +0100
committerVitaly Wool <vitaly.wool@konsulko.com>2019-02-05 18:48:25 +0100
commit84499d67fb23aa6268fd0fde4c8a040f1b40092e (patch)
treea9d608260081bf1ae50c8b46a369bd7cedd89d1f /binding
parent71ce64c02f9319342b528dddfc08f73f6d497f33 (diff)
binding: add messageType string tag
To be able to extend communication with the task manager frontend in future, add a sting tag "messageType" for the frontend to be able to distinguish between different types of replies. Change-Id: I3e36e8d1f4ec97dab007b0abdc5709dd1de22513 Signed-off-by: Vitaly Wool <vitaly.wool@konsulko.com>
Diffstat (limited to 'binding')
-rw-r--r--binding/task-manager-binding.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/binding/task-manager-binding.c b/binding/task-manager-binding.c
index 932a707..16bbf9f 100644
--- a/binding/task-manager-binding.c
+++ b/binding/task-manager-binding.c
@@ -106,6 +106,7 @@ void get_process_list(struct afb_req request){
}
freeproc(proc_info);
}
+ json_object_object_add(ret_json, "msgType", json_object_new_string("processList"));
json_object_object_add(ret_json, "processes", json_array);
afb_req_success(request, ret_json, NULL);