diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2011-08-26 17:15:11 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2011-08-29 17:42:15 +0800 |
commit | 04f88a3959838b95972664ce99cf24f94be06457 (patch) | |
tree | 5ba481428038c56c84f94b4c0571bd9d2c4c5c71 /libempathy/empathy-utils.c | |
parent | 6dfd7204baa89c6eb3903753f45b7d416a93b112 (diff) | |
download | gsoc2013-empathy-04f88a3959838b95972664ce99cf24f94be06457.tar.gz gsoc2013-empathy-04f88a3959838b95972664ce99cf24f94be06457.tar.zst gsoc2013-empathy-04f88a3959838b95972664ce99cf24f94be06457.zip |
export empathy_account_has_uri_scheme_tel()
https://bugzilla.gnome.org/show_bug.cgi?id=650112
Diffstat (limited to 'libempathy/empathy-utils.c')
-rw-r--r-- | libempathy/empathy-utils.c | 19 |
1 files changed, 19 insertions, 0 deletions
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; +} |