From a3f01f0555324b9ef19ff4bf504d3ec200e8ea03 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Fri, 21 Nov 2008 16:24:52 +0000 Subject: Cleanup of ft_manager_add_tp_file_to_list. svn path=/trunk/; revision=1908 --- libempathy/empathy-tp-file.c | 7 +++++++ libempathy/empathy-tp-file.h | 1 + 2 files changed, 8 insertions(+) (limited to 'libempathy') 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 -- cgit v1.2.3