aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy
diff options
context:
space:
mode:
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>2009-01-10 00:12:47 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2009-01-10 00:12:47 +0800
commit4422e78eea53010f3b52b7528c4234fbd15d7da8 (patch)
tree804af9c4e9862da794feb9a2c47a36bae24e2151 /libempathy
parentedead1d3f508dcfe5ba537be1c059642cac3b5e9 (diff)
downloadgsoc2013-empathy-4422e78eea53010f3b52b7528c4234fbd15d7da8.tar
gsoc2013-empathy-4422e78eea53010f3b52b7528c4234fbd15d7da8.tar.gz
gsoc2013-empathy-4422e78eea53010f3b52b7528c4234fbd15d7da8.tar.bz2
gsoc2013-empathy-4422e78eea53010f3b52b7528c4234fbd15d7da8.tar.lz
gsoc2013-empathy-4422e78eea53010f3b52b7528c4234fbd15d7da8.tar.xz
gsoc2013-empathy-4422e78eea53010f3b52b7528c4234fbd15d7da8.tar.zst
gsoc2013-empathy-4422e78eea53010f3b52b7528c4234fbd15d7da8.zip
Add a function to explicitly close File channels
Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk> svn path=/trunk/; revision=2140
Diffstat (limited to 'libempathy')
-rw-r--r--libempathy/empathy-tp-file.c9
-rw-r--r--libempathy/empathy-tp-file.h1
2 files changed, 9 insertions, 1 deletions
diff --git a/libempathy/empathy-tp-file.c b/libempathy/empathy-tp-file.c
index ada0a4354..25f93713c 100644
--- a/libempathy/empathy-tp-file.c
+++ b/libempathy/empathy-tp-file.c
@@ -913,12 +913,19 @@ empathy_tp_file_cancel (EmpathyTpFile *tp_file)
{
g_return_if_fail (EMPATHY_IS_TP_FILE (tp_file));
- tp_cli_channel_call_close (tp_file->priv->channel, -1, NULL, NULL, NULL, NULL);
+ tp_cli_channel_call_close (tp_file->priv->channel, -1,
+ NULL, NULL, NULL, NULL);
if (tp_file->priv->cancellable != NULL)
g_cancellable_cancel (tp_file->priv->cancellable);
}
+void
+empathy_tp_file_close (EmpathyTpFile *tp_file)
+{
+ empathy_tp_file_cancel (tp_file);
+}
+
static void
empathy_tp_file_class_init (EmpathyTpFileClass *klass)
{
diff --git a/libempathy/empathy-tp-file.h b/libempathy/empathy-tp-file.h
index 7beb3a151..ad25eb275 100644
--- a/libempathy/empathy-tp-file.h
+++ b/libempathy/empathy-tp-file.h
@@ -70,6 +70,7 @@ TpChannel *empathy_tp_file_get_channel (EmpathyTpFile *tp_file);
void empathy_tp_file_accept (EmpathyTpFile *tp_file, guint64 offset,
GFile *gfile, GError **error);
void empathy_tp_file_cancel (EmpathyTpFile *tp_file);
+void empathy_tp_file_close (EmpathyTpFile *tp_file);
void empathy_tp_file_offer (EmpathyTpFile *tp_file, GFile *gfile,
GError **error);