1 | /* Procman - tree view |
---|
2 | * Copyright (C) 2001 Kevin Vandersloot |
---|
3 | * |
---|
4 | * This program is free software; you can redistribute it and/or |
---|
5 | * modify it under the terms of the GNU General Public License |
---|
6 | * as published by the Free Software Foundation; either version 2 |
---|
7 | * of the License, or (at your option) any later version. |
---|
8 | * |
---|
9 | * This program is distributed in the hope that it will be useful, |
---|
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
12 | * GNU General Public License for more details. |
---|
13 | * |
---|
14 | * You should have received a copy of the GNU Library General Public |
---|
15 | * License along with this program; if not, write to the Free Software |
---|
16 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. |
---|
17 | * |
---|
18 | */ |
---|
19 | |
---|
20 | #ifndef _PROCTABLE_H_ |
---|
21 | #define _PROCTABLE_H_ |
---|
22 | |
---|
23 | |
---|
24 | enum |
---|
25 | { |
---|
26 | COL_NAME = 0, |
---|
27 | COL_ARGS, |
---|
28 | COL_USER, |
---|
29 | COL_STATUS, |
---|
30 | COL_MEM, |
---|
31 | COL_VMSIZE, |
---|
32 | COL_MEMRES, |
---|
33 | COL_MEMSHARED, |
---|
34 | COL_MEMRSS, |
---|
35 | COL_CPU, |
---|
36 | COL_NICE, |
---|
37 | COL_PID, |
---|
38 | COL_PIXBUF, |
---|
39 | COL_POINTER, |
---|
40 | NUM_COLUMNS, |
---|
41 | }; |
---|
42 | |
---|
43 | |
---|
44 | GtkWidget* proctable_new (ProcData *data); |
---|
45 | void proctable_update_table (ProcData *data); |
---|
46 | void proctable_update_list (ProcData *data); |
---|
47 | void insert_info_to_tree (ProcInfo *info, ProcData *procdata); |
---|
48 | void remove_info_from_tree (ProcInfo *info, ProcData *procdata); |
---|
49 | ProcInfo * proctable_find_process (gint pid, gchar *name, ProcData *procdata); |
---|
50 | void proctable_update_all (ProcData *data); |
---|
51 | void proctable_clear_tree (ProcData *data); |
---|
52 | void proctable_free_table (ProcData *data); |
---|
53 | void proctable_search_table (ProcData *procdata, gchar *string); |
---|
54 | |
---|
55 | |
---|
56 | #endif |
---|