2 * Copyright (c) 2017 Samsung Electronics Co., Ltd.
4 * Contact: Junkyu Han <junkyu.han@samsung.com>
6 * Licensed under the Flora License, Version 1.1 (the License);
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
10 * http://floralicense.org/license/
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an AS IS BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
19 #ifndef __SYSTEM_WORKER_REPORT_H__
20 #define __SYSTEM_WORKER_REPORT_H__
24 typedef void(*report_completed_cb)(int result, void *user_data);
26 int system_worker_report_init(const char *cmd_id);
27 void system_worker_report_fini(void);
28 int system_worker_report_begin_json_object(void);
29 int system_worker_report_end_json_object(void);
30 int system_worker_report_add_int(const char *key, long long int value);
31 int system_worker_report_add_boolean(const char *key, bool value);
32 int system_worker_report_add_string(const char *key, const char *value);
33 char *system_worker_report_get_json_string(void);
34 int system_worker_report_submit_report(const char *report,
35 report_completed_cb completed_cb, void *cb_data);
37 #endif /* __SYSTEM_WORKER_REPORT_H__ */