From 04f88a3959838b95972664ce99cf24f94be06457 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Fri, 26 Aug 2011 11:15:11 +0200 Subject: export empathy_account_has_uri_scheme_tel() https://bugzilla.gnome.org/show_bug.cgi?id=650112 --- libempathy/empathy-utils.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'libempathy/empathy-utils.c') diff --git a/libempathy/empathy-utils.c b/libempathy/empathy-utils.c index 9a0d16707..f0ecc0ddf 100644 --- a/libempathy/empathy-utils.c +++ b/libempathy/empathy-utils.c @@ -955,3 +955,22 @@ empathy_format_currency (gint amount, return money; } + +gboolean +empathy_account_has_uri_scheme_tel (TpAccount *account) +{ + const gchar * const * uri_schemes; + guint i; + + uri_schemes = tp_account_get_uri_schemes (account); + if (uri_schemes == NULL) + return FALSE; + + for (i = 0; uri_schemes[i] != NULL; i++) + { + if (!tp_strdiff (uri_schemes[i], "tel")) + return TRUE; + } + + return FALSE; +} -- cgit v1.2.3