diff options
author | Slávek Banko <[email protected]> | 2019-04-22 20:57:31 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2019-04-23 20:48:39 +0200 |
commit | 2a50894a436559785a7e0f6f65dde13b0082572c (patch) | |
tree | 560491aa8af08f16cb61cf8815aca8b5100d9e1d /art_pixbuf.h | |
parent | 87237501c51b48ba3b802efbd47776bb7e410c2a (diff) | |
download | libart-lgpl-2a50894a436559785a7e0f6f65dde13b0082572c.tar.gz libart-lgpl-2a50894a436559785a7e0f6f65dde13b0082572c.zip |
Add support for GCC hidden visibility.
Signed-off-by: Slávek Banko <[email protected]>
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 |