diff options
Diffstat (limited to 'art_pixbuf.h')
-rw-r--r-- | art_pixbuf.h | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/art_pixbuf.h b/art_pixbuf.h index d303fc0..bbac88d 100644 --- a/art_pixbuf.h +++ b/art_pixbuf.h @@ -25,8 +25,10 @@ pixel buffer formats. */ #ifdef LIBART_COMPILATION +#include "art_config.h" #include "art_misc.h" #else +#include <libart_lgpl/art_config.h> #include <libart_lgpl/art_misc.h> #endif @@ -64,37 +66,37 @@ struct _ArtPixBuf { }; /* allocate an ArtPixBuf from art_alloc()ed pixels (automated destruction) */ -ArtPixBuf * +LIBART_EXPORT ArtPixBuf * art_pixbuf_new_rgb (art_u8 *pixels, int width, int height, int rowstride); -ArtPixBuf * +LIBART_EXPORT ArtPixBuf * art_pixbuf_new_rgba (art_u8 *pixels, int width, int height, int rowstride); /* allocate an ArtPixBuf from constant pixels (no destruction) */ -ArtPixBuf * +LIBART_EXPORT ArtPixBuf * art_pixbuf_new_const_rgb (const art_u8 *pixels, int width, int height, int rowstride); -ArtPixBuf * +LIBART_EXPORT ArtPixBuf * art_pixbuf_new_const_rgba (const art_u8 *pixels, int width, int height, int rowstride); /* allocate an ArtPixBuf and notify creator upon destruction */ -ArtPixBuf * +LIBART_EXPORT ArtPixBuf * art_pixbuf_new_rgb_dnotify (art_u8 *pixels, int width, int height, int rowstride, void *dfunc_data, ArtDestroyNotify dfunc); -ArtPixBuf * +LIBART_EXPORT ArtPixBuf * art_pixbuf_new_rgba_dnotify (art_u8 *pixels, int width, int height, int rowstride, void *dfunc_data, ArtDestroyNotify dfunc); /* free an ArtPixBuf with destroy notification */ -void +LIBART_EXPORT void art_pixbuf_free (ArtPixBuf *pixbuf); /* deprecated function, use the _dnotify variants for allocation instead */ -void +LIBART_EXPORT void art_pixbuf_free_shallow (ArtPixBuf *pixbuf); -ArtPixBuf * +LIBART_EXPORT ArtPixBuf * art_pixbuf_duplicate (const ArtPixBuf *pixbuf); #ifdef __cplusplus |