summaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h
index 6e989a9..8d044ce 100644
--- a/src/util.h
+++ b/src/util.h
@@ -99,6 +99,12 @@ namespace procman
void status_cell_data_func(GtkTreeViewColumn *col, GtkCellRenderer *renderer,
GtkTreeModel *model, GtkTreeIter *iter,
gpointer user_data);
+ void priority_cell_data_func(GtkTreeViewColumn *col, GtkCellRenderer *renderer,
+ GtkTreeModel *model, GtkTreeIter *iter,
+ gpointer user_data);
+ gint priority_compare_func(GtkTreeModel* model, GtkTreeIter* first,
+ GtkTreeIter* second, gpointer user_data);
+
template<typename T>
void poison(T &t, char c)
@@ -141,6 +147,8 @@ namespace procman
gchar* format_size(guint64 size, guint64 max = 0, bool want_bits = false);
+ gchar* get_nice_level (gint nice);
+
std::string format_rate(guint64 rate, guint64 max_rate = 0, bool want_bits = false);
std::string format_network(guint64 rate, guint64 max_rate = 0);