report-generator: reafactor process generator
[apps/native/ttsd-worker-task.git] / src / process.h
index 12344ee..0f7558b 100644 (file)
@@ -17,6 +17,8 @@
 #ifndef __PROCESS_H
 #define __PROCESS_H
 
+#include <json-glib/json-glib.h>
+
 /**
  * @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);
 
+/**
+ * @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