aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2008-11-22 00:24:52 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2008-11-22 00:24:52 +0800
commita3f01f0555324b9ef19ff4bf504d3ec200e8ea03 (patch)
tree7496867b7af81fbcc6ee82711a605f255c68bb58 /libempathy
parent180c484c740bf37e5df3baadafdeaec8ec93f661 (diff)
downloadgsoc2013-empathy-a3f01f0555324b9ef19ff4bf504d3ec200e8ea03.tar
gsoc2013-empathy-a3f01f0555324b9ef19ff4bf504d3ec200e8ea03.tar.gz
gsoc2013-empathy-a3f01f0555324b9ef19ff4bf504d3ec200e8ea03.tar.bz2
gsoc2013-empathy-a3f01f0555324b9ef19ff4bf504d3ec200e8ea03.tar.lz
gsoc2013-empathy-a3f01f0555324b9ef19ff4bf504d3ec200e8ea03.tar.xz
gsoc2013-empathy-a3f01f0555324b9ef19ff4bf504d3ec200e8ea03.tar.zst
gsoc2013-empathy-a3f01f0555324b9ef19ff4bf504d3ec200e8ea03.zip
Cleanup of ft_manager_add_tp_file_to_list.
svn path=/trunk/; revision=1908
Diffstat (limited to 'libempathy')
-rw-r--r--libempathy/empathy-tp-file.c7
-rw-r--r--libempathy/empathy-tp-file.h1
2 files changed, 8 insertions, 0 deletions
diff --git a/libempathy/empathy-tp-file.c b/libempathy/empathy-tp-file.c
index 420182f5f..9a6602ecc 100644
--- a/libempathy/empathy-tp-file.c
+++ b/libempathy/empathy-tp-file.c
@@ -935,6 +935,13 @@ empathy_tp_file_get_remaining_time (EmpathyTpFile *tp_file)
return (gint) remaining_time;
}
+const gchar *
+empathy_tp_file_get_content_type (EmpathyTpFile *tp_file)
+{
+ g_return_val_if_fail (EMPATHY_IS_TP_FILE (tp_file), NULL);
+ return tp_file->priv->content_type;
+}
+
void
empathy_tp_file_cancel (EmpathyTpFile *tp_file)
{
diff --git a/libempathy/empathy-tp-file.h b/libempathy/empathy-tp-file.h
index e6c0dae7d..4ea6650f8 100644
--- a/libempathy/empathy-tp-file.h
+++ b/libempathy/empathy-tp-file.h
@@ -83,6 +83,7 @@ EmpFileTransferState empathy_tp_file_get_state (EmpathyTpFile *tp_file,
guint64 empathy_tp_file_get_size (EmpathyTpFile *tp_file);
guint64 empathy_tp_file_get_transferred_bytes (EmpathyTpFile *tp_file);
gint empathy_tp_file_get_remaining_time (EmpathyTpFile *tp_file);
+const gchar *empathy_tp_file_get_content_type (EmpathyTpFile *tp_file);
G_END_DECLS