diff options
Diffstat (limited to 'libempathy/empathy-file.c')
-rw-r--r-- | libempathy/empathy-file.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libempathy/empathy-file.c b/libempathy/empathy-file.c index c3e028a7a..0c0d0dd51 100644 --- a/libempathy/empathy-file.c +++ b/libempathy/empathy-file.c @@ -894,6 +894,18 @@ empathy_file_get_remaining_time (EmpathyFile *file) } void +empathy_file_cancel (EmpathyFile *file) +{ + EmpathyFilePriv *priv; + + priv = GET_PRIV (file); + + g_cancellable_cancel (priv->cancellable); + + tp_cli_channel_run_close (priv->channel, -1, NULL, NULL); +} + +void empathy_file_set_input_stream (EmpathyFile *file, GInputStream *in_stream) { |