From 48fd13dde6d5bee784a2ae32fde6a0664597b820 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Thu, 2 Aug 2007 11:27:13 +0000 Subject: Adding new empathy_strdiff API stolen from telepathy-glib. It check if 2007-08-02 Xavier Claessens * libempathy-gtk/empathy-accounts-dialog.c: * libempathy/empathy-utils.c: * libempathy/empathy-utils.h: Adding new empathy_strdiff API stolen from telepathy-glib. It check if strings are != NULL before using strcmp. Using that API to fix bug #461886. Should be used in more places. svn path=/trunk/; revision=224 --- libempathy/empathy-utils.h | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) (limited to 'libempathy/empathy-utils.h') diff --git a/libempathy/empathy-utils.h b/libempathy/empathy-utils.h index da56174bd..5669d33d1 100644 --- a/libempathy/empathy-utils.h +++ b/libempathy/empathy-utils.h @@ -78,16 +78,7 @@ xmlNodePtr empathy_xml_node_find_child_prop_value (xmlNodePtr node, const gchar *prop_name, const gchar *prop_value); - -/* GValue/GType */ -GType empathy_dbus_type_to_g_type (const gchar *dbus_type_string); -const gchar *empathy_g_type_to_dbus_type (GType g_type); -gchar * empathy_g_value_to_string (const GValue *value); -GValue * empathy_string_to_g_value (const gchar *str, - GType type); -gboolean empathy_g_value_equal (const GValue *value1, - const GValue *value2); - +/* Others */ guint empathy_account_hash (gconstpointer key); gboolean empathy_account_equal (gconstpointer a, gconstpointer b); @@ -97,7 +88,8 @@ gchar * empathy_inspect_handle (McAccount *account, guint handle_type); gchar * empathy_inspect_channel (McAccount *account, TpChan *tp_chan); - +gboolean empathy_strdiff (const gchar *left, + const gchar *right); G_END_DECLS #endif /* __EMPATHY_UTILS_H__ */ -- cgit v1.2.3