Add a function comparing tasks (bug 14403)
This commit is contained in:
@@ -693,3 +693,8 @@ set_priority_to_pid (guint pid, gint priority)
|
||||
return (res == 0) ? TRUE : FALSE;
|
||||
}
|
||||
|
||||
gint
|
||||
task_pid_compare_fn(gconstpointer a, gconstpointer b)
|
||||
{
|
||||
return (((Task*)a)->pid - ((Task*)b)->pid);
|
||||
}
|
||||
|
||||
@@ -95,6 +95,7 @@ enum
|
||||
void get_owner_uid (guint *owner_uid, gchar **owner_uid_name);
|
||||
gchar * get_hostname (void);
|
||||
gboolean send_signal_to_pid (guint pid, gint xtm_signal);
|
||||
gint task_pid_compare_fn (gconstpointer a, gconstpointer b);
|
||||
gboolean set_priority_to_pid (guint pid, gint priority);
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user