From c0a0111bcdb1d0f65e718883eeea4da868374e2e Mon Sep 17 00:00:00 2001 From: Cosimo Cecchi Date: Wed, 6 May 2009 14:59:17 +0200 Subject: Update the EmpathyFTFactory API Update the factory API to make hashing request optional. --- libempathy/empathy-ft-factory.c | 5 +++-- libempathy/empathy-ft-factory.h | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/libempathy/empathy-ft-factory.c b/libempathy/empathy-ft-factory.c index 5ebbe19cd..e36f553c8 100644 --- a/libempathy/empathy-ft-factory.c +++ b/libempathy/empathy-ft-factory.c @@ -135,13 +135,14 @@ empathy_ft_factory_dup_singleton (void) void empathy_ft_factory_new_transfer_outgoing (EmpathyFTFactory *factory, EmpathyContact *contact, - GFile *source) + GFile *source, + gboolean use_hash) { g_return_if_fail (EMPATHY_IS_FT_FACTORY (factory)); g_return_if_fail (EMPATHY_IS_CONTACT (contact)); g_return_if_fail (G_IS_FILE (source)); - empathy_ft_handler_new_outgoing (contact, source, + empathy_ft_handler_new_outgoing (contact, source, use_hash, ft_handler_outgoing_ready_cb, factory); } diff --git a/libempathy/empathy-ft-factory.h b/libempathy/empathy-ft-factory.h index 1adae4af1..18310bd2d 100644 --- a/libempathy/empathy-ft-factory.h +++ b/libempathy/empathy-ft-factory.h @@ -59,7 +59,7 @@ GType empathy_ft_factory_get_type (void); /* public methods */ EmpathyFTFactory* empathy_ft_factory_dup_singleton (void); void empathy_ft_factory_new_transfer_outgoing (EmpathyFTFactory *factory, - EmpathyContact *contact, GFile *source); + EmpathyContact *contact, GFile *source, gboolean use_hash); void empathy_ft_factory_claim_channel (EmpathyFTFactory *factory, EmpathyDispatchOperation *operation); void empathy_ft_factory_set_destination_for_incoming_handler -- cgit v1.2.3