libpurple/protocols/sametime/sametime.c

branch
soc.2008.masterpassword
changeset 34108
7a07b6857540
parent 34106
1b0c94670bcc
parent 33661
2ebcb105e606
child 34111
85b5efb9a873
equal deleted inserted replaced
34107:efe6019c9e91 34108:7a07b6857540
2778 /* look up the content id */ 2778 /* look up the content id */
2779 cid = (char *) purple_mime_part_get_field(part, "Content-ID"); 2779 cid = (char *) purple_mime_part_get_field(part, "Content-ID");
2780 cid = make_cid(cid); 2780 cid = make_cid(cid);
2781 2781
2782 /* add image to the purple image store */ 2782 /* add image to the purple image store */
2783 img = purple_imgstore_add_with_id(d_dat, d_len, cid); 2783 img = purple_imgstore_new_with_id(d_dat, d_len, cid);
2784 2784
2785 /* map the cid to the image store identifier */ 2785 /* map the cid to the image store identifier */
2786 g_hash_table_insert(img_by_cid, cid, GINT_TO_POINTER(img)); 2786 g_hash_table_insert(img_by_cid, cid, GINT_TO_POINTER(img));
2787 2787
2788 /* recall the image for dereferencing later */ 2788 /* recall the image for dereferencing later */

mercurial