27 #ifndef _PURPLE_IMGSTORE_H_ 28 #define _PURPLE_IMGSTORE_H_ void purple_imgstore_uninit(void)
Uninitializes the image store subsystem.
const char * purple_imgstore_get_extension(PurpleStoredImage *img)
Looks at the magic numbers of the image data (the first few bytes) and returns an extension correspon...
size_t purple_imgstore_get_size(PurpleStoredImage *img)
Retrieves the length of the image's data.
struct _PurpleStoredImage PurpleStoredImage
A set of utility functions that provide a reference-counted immutable wrapper around an image's data ...
void purple_imgstore_unref_by_id(int id)
Decrement the reference count using an ID.
void * purple_imgstore_get_handle(void)
Returns the image store subsystem handle.
PurpleStoredImage * purple_imgstore_add(gpointer data, size_t size, const char *filename)
Create a new PurpleStoredImage.
PurpleStoredImage * purple_imgstore_unref(PurpleStoredImage *img)
Decrement the reference count.
PurpleStoredImage * purple_imgstore_find_by_id(int id)
Retrieve an image from the store.
PurpleStoredImage * purple_imgstore_ref(PurpleStoredImage *img)
Increment the reference count.
void purple_imgstore_init(void)
Initializes the image store subsystem.
const char * purple_imgstore_get_filename(const PurpleStoredImage *img)
Retrieves a pointer to the image's filename.
void purple_imgstore_ref_by_id(int id)
Increment the reference count using an ID.
int purple_imgstore_add_with_id(gpointer data, size_t size, const char *filename)
Create a PurpleStoredImage using purple_imgstore_add() and add the image to the image store...
gconstpointer purple_imgstore_get_data(PurpleStoredImage *img)
Retrieves a pointer to the image's data.
PurpleStoredImage * purple_imgstore_new_from_file(const char *path)
Create a PurpleStoredImage using purple_imgstore_add() by reading the given filename from disk...