Convert LTTngTop to C++ and state system
[lttngtop.git] / src / iostreamtop.h
index 4176c6976e0c824aa726271ebda11258affafde5..077650737a3ce710342e0d5520d05926d241f484 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2011 Mathieu Bain <mathieu.bain@polymtl.ca>
+ * Copyright (C) 2011-2012 Mathieu Bain <mathieu.bain@polymtl.ca>
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License Version 2 as
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston,
- * MA 02111-1307, USA.
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 
 #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);
+#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);
+                               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.022382 seconds and 4 git commands to generate.