empathy r2140 - trunk/libempathy
- From: xclaesse svn gnome org
- To: svn-commits-list gnome org
- Subject: empathy r2140 - trunk/libempathy
- Date: Fri, 9 Jan 2009 16:12:47 +0000 (UTC)
Author: xclaesse
Date: Fri Jan 9 16:12:47 2009
New Revision: 2140
URL: http://svn.gnome.org/viewvc/empathy?rev=2140&view=rev
Log:
Add a function to explicitly close File channels
Signed-off-by: Sjoerd Simons <sjoerd simons collabora co uk>
Modified:
trunk/libempathy/empathy-tp-file.c
trunk/libempathy/empathy-tp-file.h
Modified: trunk/libempathy/empathy-tp-file.c
==============================================================================
--- trunk/libempathy/empathy-tp-file.c (original)
+++ trunk/libempathy/empathy-tp-file.c Fri Jan 9 16:12:47 2009
@@ -913,12 +913,19 @@
{
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)
{
Modified: trunk/libempathy/empathy-tp-file.h
==============================================================================
--- trunk/libempathy/empathy-tp-file.h (original)
+++ trunk/libempathy/empathy-tp-file.h Fri Jan 9 16:12:47 2009
@@ -70,6 +70,7 @@
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]