projects
/
apps
/
native
/
ttsd-worker-task.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
report-generator: reafactor process generator
[apps/native/ttsd-worker-task.git]
/
src
/
process.h
diff --git
a/src/process.h
b/src/process.h
index
12344ee
..
0f7558b
100644
(file)
--- a/
src/process.h
+++ b/
src/process.h
@@
-17,6
+17,8
@@
#ifndef __PROCESS_H
#define __PROCESS_H
#ifndef __PROCESS_H
#define __PROCESS_H
+#include <json-glib/json-glib.h>
+
/**
* @brief The process structure.
*
/**
* @brief The process structure.
*
@@
-145,4
+147,12
@@
int process_get_cpu_usage_percentage(struct process *proc, float *usage);
*/
int process_get_memory_usage_percentage(struct process *dst, float *usage);
*/
int process_get_memory_usage_percentage(struct process *dst, float *usage);
+/**
+ * @brief Serializes process object as json
+ *
+ * @param[in]: proc process
+ * @param[in/out]: the json builder object.
+ */
+void process_serialize(struct process *dst, JsonBuilder *builer);
+
#endif
#endif