view plugins/perl/common/ImgStore.xs @ 13973:9c0885611b27

[gaim-migrate @ 16531] I see a lot of crashes from callbacks (mostly originating in proxy.c code) that end up crashing in gaim_connection_error() because the connection is invalid. Added a g_return_if_fail() on the connection being valid to protect against that condition as well as log it. committer: Tailor Script <tailor@pidgin.im>
author Evan Schoenberg <evan.s@dreskin.net>
date Thu, 20 Jul 2006 18:32:09 +0000
parents b284c703d398
children
line wrap: on
line source

#include "module.h"

MODULE = Gaim::ImgStore  PACKAGE = Gaim::ImgStore  PREFIX = gaim_imgstore_
PROTOTYPES: ENABLE

int 
gaim_imgstore_add(data, size, filename)
	void *data
	size_t size
	const char *filename

Gaim::StoredImage
gaim_imgstore_get(id)
	int id

gpointer 
gaim_imgstore_get_data(i)
	Gaim::StoredImage i

const char *
gaim_imgstore_get_filename(i)
	Gaim::StoredImage i

size_t 
gaim_imgstore_get_size(i)
	Gaim::StoredImage i

void 
gaim_imgstore_ref(id)
	int id

void 
gaim_imgstore_unref(id)
	int id