From 1f239a9cb9595292b71fc0336e5d0055c5b81860 Mon Sep 17 00:00:00 2001 From: Cosimo Cecchi Date: Mon, 4 May 2009 01:50:03 +0200 Subject: Total FileTransfer draft spec exorcism --- libempathy/empathy-ft-handler.c | 9 ++++----- libempathy/empathy-ft-handler.h | 2 +- libempathy/empathy-tp-file.c | 6 ++---- libempathy/empathy-tp-file.h | 4 +--- 4 files changed, 8 insertions(+), 13 deletions(-) (limited to 'libempathy') diff --git a/libempathy/empathy-ft-handler.c b/libempathy/empathy-ft-handler.c index 93232b187..765de8bbd 100644 --- a/libempathy/empathy-ft-handler.c +++ b/libempathy/empathy-ft-handler.c @@ -21,7 +21,6 @@ /* empathy-ft-handler.c */ -#include #include #include #include @@ -94,8 +93,8 @@ typedef struct { guint64 transferred_bytes; guint64 mtime; gchar *content_hash; - EmpFileHashType content_hash_type; - EmpFileTransferState current_state; + TpFileHashType content_hash_type; + TpFileTransferState current_state; gboolean is_completed; gboolean is_cancelled; @@ -684,7 +683,7 @@ ft_handler_read_async_cb (GObject *source, /* org.freedesktop.Telepathy.Channel.Type.FileTransfer.ContentHashType */ value = tp_g_value_slice_new (G_TYPE_UINT); - g_value_set_uint (value, EMP_FILE_HASH_TYPE_MD5); + g_value_set_uint (value, TP_FILE_HASH_TYPE_MD5); g_hash_table_insert (priv->request, TP_IFACE_CHANNEL_TYPE_FILE_TRANSFER ".ContentHashType", value); @@ -1011,7 +1010,7 @@ empathy_ft_handler_get_gfile (EmpathyFTHandler *handler) return priv->gfile; } -EmpFileTransferState +TpFileTransferState empathy_ft_handler_get_state (EmpathyFTHandler *handler, char **state_string) { diff --git a/libempathy/empathy-ft-handler.h b/libempathy/empathy-ft-handler.h index 085abab52..c561fe29f 100644 --- a/libempathy/empathy-ft-handler.h +++ b/libempathy/empathy-ft-handler.h @@ -77,7 +77,7 @@ const char * empathy_ft_handler_get_filename (EmpathyFTHandler *handler); const char * empathy_ft_handler_get_content_type (EmpathyFTHandler *handler); EmpathyContact * empathy_ft_handler_get_contact (EmpathyFTHandler *handler); GFile * empathy_ft_handler_get_gfile (EmpathyFTHandler *handler); -EmpFileTransferState empathy_ft_handler_get_state (EmpathyFTHandler *handler, +TpFileTransferState empathy_ft_handler_get_state (EmpathyFTHandler *handler, char **state_string); gboolean empathy_ft_handler_is_incoming (EmpathyFTHandler *handler); guint64 empathy_ft_handler_get_transferred_bytes (EmpathyFTHandler *handler); diff --git a/libempathy/empathy-tp-file.c b/libempathy/empathy-tp-file.c index cd28c541b..098440a42 100644 --- a/libempathy/empathy-tp-file.c +++ b/libempathy/empathy-tp-file.c @@ -44,8 +44,6 @@ #include "empathy-time.h" #include "empathy-utils.h" -#include "extensions/extensions.h" - #define DEBUG_FLAG EMPATHY_DEBUG_FT #include "empathy-debug.h" @@ -82,8 +80,8 @@ typedef struct { GOutputStream *out_stream; /* org.freedesktop.Telepathy.Channel.Type.FileTransfer D-Bus properties */ - EmpFileTransferState state; - EmpFileTransferStateChangeReason state_change_reason; + TpFileTransferState state; + TpFileTransferStateChangeReason state_change_reason; /* transfer properties */ gboolean incoming; diff --git a/libempathy/empathy-tp-file.h b/libempathy/empathy-tp-file.h index db928e86f..04da254c1 100644 --- a/libempathy/empathy-tp-file.h +++ b/libempathy/empathy-tp-file.h @@ -28,8 +28,6 @@ #include #include -#include "extensions/extensions.h" - #include G_BEGIN_DECLS @@ -95,7 +93,7 @@ void empathy_tp_file_close (EmpathyTpFile *tp_file); gboolean empathy_tp_file_is_incoming (EmpathyTpFile *tp_file); -EmpFileTransferState empathy_tp_file_get_state (EmpathyTpFile *tp_file, guint *reason); +TpFileTransferState empathy_tp_file_get_state (EmpathyTpFile *tp_file, guint *reason); G_END_DECLS -- cgit v1.2.3