diff options
Diffstat (limited to 'task-list.h')
-rw-r--r-- | task-list.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/task-list.h b/task-list.h new file mode 100644 index 0000000..eb1213b --- /dev/null +++ b/task-list.h | |||
@@ -0,0 +1,20 @@ | |||
1 | #ifndef __TASK_LIST_H | ||
2 | #define __TASK_LIST_H | ||
3 | |||
4 | #include <gtk/gtk.h> | ||
5 | #include "trace-cmd.h" | ||
6 | #include "trace-hash.h" | ||
7 | |||
8 | #define TASK_HASH_SIZE 1024 | ||
9 | |||
10 | struct task_list { | ||
11 | struct task_list *next; | ||
12 | gint pid; | ||
13 | }; | ||
14 | |||
15 | struct task_list* find_task_list(struct task_list **tasks, int pid); | ||
16 | struct task_list* add_task_hash(struct task_list **tasks, int pid); | ||
17 | void free_task_hash(struct task_list **tasks); | ||
18 | gint* task_list_pids(struct task_list **tasks); | ||
19 | |||
20 | #endif | ||