aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-utils.h
diff options
context:
space:
mode:
authorDanielle Madeley <danielle.madeley@collabora.co.uk>2011-04-15 12:15:47 +0800
committerDanielle Madeley <danielle.madeley@collabora.co.uk>2011-05-05 15:05:08 +0800
commit1cc68d03a0339cf5f31fabb308b3f1cd9bdb9272 (patch)
treee1f03dba747463a5874717d01a1df3df9b797306 /libempathy/empathy-utils.h
parent77fab8ebc60ce2625c4f449cde6296b25b10b05d (diff)
downloadgsoc2013-empathy-1cc68d03a0339cf5f31fabb308b3f1cd9bdb9272.tar
gsoc2013-empathy-1cc68d03a0339cf5f31fabb308b3f1cd9bdb9272.tar.gz
gsoc2013-empathy-1cc68d03a0339cf5f31fabb308b3f1cd9bdb9272.tar.bz2
gsoc2013-empathy-1cc68d03a0339cf5f31fabb308b3f1cd9bdb9272.tar.lz
gsoc2013-empathy-1cc68d03a0339cf5f31fabb308b3f1cd9bdb9272.tar.xz
gsoc2013-empathy-1cc68d03a0339cf5f31fabb308b3f1cd9bdb9272.tar.zst
gsoc2013-empathy-1cc68d03a0339cf5f31fabb308b3f1cd9bdb9272.zip
Add method empathy_format_currency()
This method takes a Telepathy Currency_Amount and attempts to format it using currency rules appropriate for that amount. Unfortunately I haven't yet found a good summary of currency rules, so I've mostly been guessing. The currencies structure needs completing and checking.
Diffstat (limited to 'libempathy/empathy-utils.h')
-rw-r--r--libempathy/empathy-utils.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libempathy/empathy-utils.h b/libempathy/empathy-utils.h
index de879021e..79d6ba355 100644
--- a/libempathy/empathy-utils.h
+++ b/libempathy/empathy-utils.h
@@ -117,6 +117,8 @@ gboolean empathy_folks_persona_is_interesting (FolksPersona *persona);
gchar * empathy_get_x509_certificate_hostname (gnutls_x509_crt_t cert);
+char *empathy_format_currency (int amount, guint scale, const char *currency);
+
/* Copied from wocky/wocky-utils.h */
#define empathy_implement_finish_void(source, tag) \