comparison libpurple/imgstore.h @ 22511:0ae4d67bd6b1

Make it simple to create a stored-image from a filename.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Fri, 07 Mar 2008 23:14:23 +0000
parents f296be2a1039
children 48e33e3673e2
comparison
equal deleted inserted replaced
22510:e04a69cf1d8e 22511:0ae4d67bd6b1
54 */ 54 */
55 PurpleStoredImage * 55 PurpleStoredImage *
56 purple_imgstore_add(gpointer data, size_t size, const char *filename); 56 purple_imgstore_add(gpointer data, size_t size, const char *filename);
57 57
58 /** 58 /**
59 * Create an image and add it to the store.
60 *
61 * @param path The path to the image.
62 *
63 * @return The stored image.
64 * @since 2.X.X
65 */
66 PurpleStoredImage *
67 purple_imgstore_new_from_file(const char *path);
68
69 /**
59 * Add an image to the store, allocating an ID. 70 * Add an image to the store, allocating an ID.
60 * 71 *
61 * The caller owns a reference to the image in the store, and must dereference 72 * The caller owns a reference to the image in the store, and must dereference
62 * the image with purple_imgstore_unref_by_id() or purple_imgstore_unref() 73 * the image with purple_imgstore_unref_by_id() or purple_imgstore_unref()
63 * for it to be freed. 74 * for it to be freed.