Mercurial > pidgin
comparison libpurple/protocols/msn/slplink.c @ 29835:afc9cec164e4
Rename purple_xfer_get_thumbnail_data/size to be more D-Bus friendly.
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Sun, 25 Apr 2010 21:09:34 +0000 |
parents | 2ab17571bf42 |
children | cb9afb16cc3d 0b22c840f4f4 f8ec889c5bce |
comparison
equal
deleted
inserted
replaced
29834:905e291986bc | 29835:afc9cec164e4 |
---|---|
718 g_free(u8); | 718 g_free(u8); |
719 file_name = NULL; | 719 file_name = NULL; |
720 u8 = NULL; | 720 u8 = NULL; |
721 } | 721 } |
722 | 722 |
723 preview = purple_xfer_get_thumbnail_data(xfer); | 723 preview = purple_xfer_get_thumbnail(xfer, &preview_len); |
724 if (preview) | |
725 preview_len = purple_xfer_get_thumbnail_size(xfer); | |
726 else | |
727 preview_len = 0; | |
728 header = g_malloc(sizeof(MsnFileContext) + preview_len); | 724 header = g_malloc(sizeof(MsnFileContext) + preview_len); |
729 | 725 |
730 header->length = GUINT32_TO_LE(sizeof(MsnFileContext) - 1); | 726 header->length = GUINT32_TO_LE(sizeof(MsnFileContext) - 1); |
731 header->version = GUINT32_TO_LE(2); /* V.3 contains additional unnecessary data */ | 727 header->version = GUINT32_TO_LE(2); /* V.3 contains additional unnecessary data */ |
732 header->file_size = GUINT64_TO_LE(size); | 728 header->file_size = GUINT64_TO_LE(size); |