(Old svn revision: 776)

This commit is contained in:
Johannes Zellner
2005-09-07 04:36:02 +00:00
parent c32b01b317
commit f5646a5538
9 changed files with 804 additions and 257 deletions

View File

@@ -1,7 +1,7 @@
/*
* xfce4-taskmanager - very simple taskmanger
*
* Copyright (c) 2004 Johannes Zellner, <webmaster@nebulon.de>
* Copyright (c) 2005 Johannes Zellner, <webmaster@nebulon.de>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -18,34 +18,30 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#ifndef __FUNCTIONS_H_
#define __FUNCTIONS_H_
#include <gtk/gtk.h>
#include <dirent.h>
#include <pwd.h>
#include <sys/types.h>
#include <stdio.h>
#include <libxfce4util/libxfce4util.h>
#include <libgtop-2.0/glibtop.h>
#include <libgtop-2.0/glibtop/proctime.h>
#include "types.h"
/* config vars */
gboolean config_show_user_tasks;
gboolean config_show_root_tasks;
gboolean config_show_other_tasks;
#define PROC_DIR_1 "/compat/linux/proc"
#define PROC_DIR_2 "/emul/linux/proc"
#define PROC_DIR_3 "/proc"
struct task all_tasks[512];
struct task task_list;
void refresh_task_list(gboolean first_time);
gboolean refresh_task_list(void);
void fill_list_item(gint i, GtkTreeIter *iter);
void add_new_list_item(gint i);
gint compare_list_item(GtkTreeModel *model, GtkTreeIter *a, GtkTreeIter *b, gpointer user_data);
void remove_list_item(gint i);
void refresh_list_item(gint i);
void send_signal_to_task(gchar *task_id, gchar *signal);
void remove_task_from_array(gint count);
struct task *get_parent_task(struct task task);
void show_user_tasks(void);
void hide_user_tasks(void);
void show_root_tasks(void);
void hide_root_tasks(void);
void show_other_tasks(void);
void hide_other_tasks(void);
void load_config(void);
void change_task_view(void);
#endif