[Xfce4-commits] [apps/xfce4-taskmanager] 01/01: Add a function comparing tasks (bug 14403)

noreply at xfce.org noreply at xfce.org
Sat May 26 23:49:07 CEST 2018


This is an automated email from the git hooks/post-receive script.

l   a   n   d   r   y       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository apps/xfce4-taskmanager.

commit 4d4d0b50736a9b63f49aeadeca51fb3b3691d507
Author: rim <rozhuk.im at gmail.com>
Date:   Sat May 26 23:48:46 2018 +0200

    Add a function comparing tasks (bug 14403)
---
 src/task-manager.c | 5 +++++
 src/task-manager.h | 1 +
 2 files changed, 6 insertions(+)

diff --git a/src/task-manager.c b/src/task-manager.c
index 76f0afe..4ebc83a 100644
--- a/src/task-manager.c
+++ b/src/task-manager.c
@@ -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);
+}
diff --git a/src/task-manager.h b/src/task-manager.h
index 5384715..df0e1f3 100644
--- a/src/task-manager.h
+++ b/src/task-manager.h
@@ -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);
 
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list