aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-ft-handler.c
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimo.cecchi@collabora.co.uk>2009-05-01 01:49:47 +0800
committerCosimo Cecchi <cosimoc@gnome.org>2009-06-01 23:47:36 +0800
commita64bc30f336c9dc6fa8e22f33cae3a97d5819d7d (patch)
tree8d395a1c39667ac108dfb826ec16c97d56ddc6d0 /libempathy/empathy-ft-handler.c
parentcb541929d5079a6c817685776ee86b1b7c4664fc (diff)
downloadgsoc2013-empathy-a64bc30f336c9dc6fa8e22f33cae3a97d5819d7d.tar
gsoc2013-empathy-a64bc30f336c9dc6fa8e22f33cae3a97d5819d7d.tar.gz
gsoc2013-empathy-a64bc30f336c9dc6fa8e22f33cae3a97d5819d7d.tar.bz2
gsoc2013-empathy-a64bc30f336c9dc6fa8e22f33cae3a97d5819d7d.tar.lz
gsoc2013-empathy-a64bc30f336c9dc6fa8e22f33cae3a97d5819d7d.tar.xz
gsoc2013-empathy-a64bc30f336c9dc6fa8e22f33cae3a97d5819d7d.tar.zst
gsoc2013-empathy-a64bc30f336c9dc6fa8e22f33cae3a97d5819d7d.zip
Add empathy_ft_handler_get_total_bytes API
Diffstat (limited to 'libempathy/empathy-ft-handler.c')
-rw-r--r--libempathy/empathy-ft-handler.c20
1 files changed, 16 insertions, 4 deletions
diff --git a/libempathy/empathy-ft-handler.c b/libempathy/empathy-ft-handler.c
index 15085b83f..8ac5430b3 100644
--- a/libempathy/empathy-ft-handler.c
+++ b/libempathy/empathy-ft-handler.c
@@ -95,7 +95,7 @@ typedef struct {
guint64 mtime;
gchar *content_hash;
EmpFileHashType content_hash_type;
- EmpathyFTHandlerState current_state;
+ EmpFileTransferState current_state;
} EmpathyFTHandlerPriv;
static guint signals[LAST_SIGNAL] = { 0 };
@@ -977,9 +977,9 @@ empathy_ft_handler_get_gfile (EmpathyFTHandler *handler)
return priv->gfile;
}
-/* FIXME! */
-EmpathyFTHandlerState
-empathy_ft_handler_get_state (EmpathyFTHandler *handler)
+EmpFileTransferState
+empathy_ft_handler_get_state (EmpathyFTHandler *handler,
+ char **state_string)
{
EmpathyFTHandlerPriv *priv;
@@ -1016,3 +1016,15 @@ empathy_ft_handler_get_transferred_bytes (EmpathyFTHandler *handler)
return priv->transferred_bytes;
}
+
+guint64
+empathy_ft_handler_get_total_bytes (EmpathyFTHandler *handler)
+{
+ EmpathyFTHandlerPriv *priv;
+
+ g_return_val_if_fail (EMPATHY_IS_FT_HANDLER (handler), 0);
+
+ priv = GET_PRIV (handler);
+
+ return priv->total_bytes;
+}