Convert LTTngTop to C++ and state system
[lttngtop.git] / src / iostreamtop.h
index 0124ac6455a780bd6f4ce668100ca8162989cec5..077650737a3ce710342e0d5520d05926d241f484 100644 (file)
 #ifndef _IOSTREANTOP_H
 #define _IOSTREAMTOP_H
 
+extern "C" {
 #include <babeltrace/babeltrace.h>
 #include <babeltrace/ctf/events.h>
+}
 #include <inttypes.h>
 #include <glib.h>
 #include <asm/unistd.h>
 
-struct files *get_file(struct processtop *proc, int fd);
-void show_table(GPtrArray *tab);
-void insert_file(struct processtop *proc, int fd);
+#include "common.h"
+
+bool get_file(Quark proc_quark, int fd, Quark &file_quark);
+void insert_file(Quark proc, int fd, unsigned long timestamp);
+
+void show_history(Quark proc);
 
 enum bt_cb_ret handle_exit_syscall(struct bt_ctf_event *call_data,
-               void *private_data);
+                                  void *private_data);
 enum bt_cb_ret handle_sys_write(struct bt_ctf_event *call_data,
-               void *private_data);
+                               void *private_data);
 enum bt_cb_ret handle_sys_read(struct bt_ctf_event *call_data,
-               void *private_data);
+                              void *private_data);
 enum bt_cb_ret handle_sys_open(struct bt_ctf_event *call_data,
-               void *private_data);
+                              void *private_data);
 enum bt_cb_ret handle_sys_close(struct bt_ctf_event *call_data,
-               void *private_data);
-enum bt_cb_ret handle_statedump_file_descriptor(struct bt_ctf_event *call_data,
-               void *private_data);
+                               void *private_data);
+enum bt_cb_ret handle_statedump_file_descriptor(
+       struct bt_ctf_event *call_data, void *private_data);
 
 #endif /* _IOSTREAMTOP_H */
This page took 0.023558 seconds and 4 git commands to generate.