27#ifndef _PURPLE_IMGSTORE_H_
28#define _PURPLE_IMGSTORE_H_
void * purple_imgstore_get_handle(void)
Returns the image store subsystem handle.
gconstpointer purple_imgstore_get_data(PurpleStoredImage *img)
Retrieves a pointer to the image's data.
PurpleStoredImage * purple_imgstore_find_by_id(int id)
Retrieve an image from the store.
size_t purple_imgstore_get_size(PurpleStoredImage *img)
Retrieves the length of the image's data.
PurpleStoredImage * purple_imgstore_add(gpointer data, size_t size, const char *filename)
Create a new PurpleStoredImage.
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.
PurpleStoredImage * purple_imgstore_new_from_file(const char *path)
Create a PurpleStoredImage using purple_imgstore_add() by reading the given filename from disk.
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.
void purple_imgstore_uninit(void)
Uninitializes the image store subsystem.
void purple_imgstore_unref_by_id(int id)
Decrement the reference count using an ID.
struct _PurpleStoredImage PurpleStoredImage
A set of utility functions that provide a reference-counted immutable wrapper around an image's data ...
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...
PurpleStoredImage * purple_imgstore_unref(PurpleStoredImage *img)
Decrement the reference count.
PurpleStoredImage * purple_imgstore_ref(PurpleStoredImage *img)
Increment the reference count.