[empathy: 134/148] Add a helper uint_compare function
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: svn-commits-list gnome org
- Subject: [empathy: 134/148] Add a helper uint_compare function
- Date: Mon, 1 Jun 2009 12:19:05 -0400 (EDT)
commit 4a3f9aa43df81215cbb0ad1ae1c00702798f44f9
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Wed May 27 14:36:31 2009 +0200
Add a helper uint_compare function
---
libempathy/empathy-utils.c | 7 +++++++
libempathy/empathy-utils.h | 2 ++
2 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/libempathy/empathy-utils.c b/libempathy/empathy-utils.c
index b5c3a0e..9bcd656 100644
--- a/libempathy/empathy-utils.c
+++ b/libempathy/empathy-utils.c
@@ -380,3 +380,10 @@ empathy_check_available_state (void)
return TRUE;
}
+gint
+empathy_uint_compare (gconstpointer a,
+ gconstpointer b)
+{
+ return *(guint*) a - *(guint*) b;
+}
+
diff --git a/libempathy/empathy-utils.h b/libempathy/empathy-utils.h
index d36503c..de1437b 100644
--- a/libempathy/empathy-utils.h
+++ b/libempathy/empathy-utils.h
@@ -78,6 +78,8 @@ gboolean empathy_proxy_equal (gconstpointer a,
gconstpointer b);
guint empathy_proxy_hash (gconstpointer key);
gboolean empathy_check_available_state (void);
+gint empathy_uint_compare (gconstpointer a,
+ gconstpointer b);
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]