| 1 | /* |
| 2 | * Copyright (C) 2011-2012 Julien Desfossez |
| 3 | * |
| 4 | * This program is free software; you can redistribute it and/or modify |
| 5 | * it under the terms of the GNU General Public License Version 2 as |
| 6 | * published by the Free Software Foundation; |
| 7 | * |
| 8 | * This program is distributed in the hope that it will be useful, |
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 11 | * GNU General Public License for more details. |
| 12 | * |
| 13 | * You should have received a copy of the GNU General Public License along |
| 14 | * with this program; if not, write to the Free Software Foundation, Inc., |
| 15 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
| 16 | */ |
| 17 | |
| 18 | #ifndef CURSESDISPLAY_H |
| 19 | #define CURSESDISPLAY_H |
| 20 | |
| 21 | #include <glib.h> |
| 22 | #include <ncurses.h> |
| 23 | #include "common.h" |
| 24 | |
| 25 | enum view_list |
| 26 | { |
| 27 | cpu = 1, |
| 28 | perf, |
| 29 | process_details, |
| 30 | iostream, |
| 31 | tree, |
| 32 | kprobes, |
| 33 | }; |
| 34 | |
| 35 | enum view_list current_view; |
| 36 | enum view_list previous_view; |
| 37 | |
| 38 | void display(unsigned int); |
| 39 | void init_ncurses(); |
| 40 | void reset_ncurses(); |
| 41 | |
| 42 | #endif // CURSESDISPLAY_H |