Enlightenment CVS committal Author : sebastid Project : e17 Module : libs/esmart
Dir : e17/libs/esmart/src/lib/esmart_thumb Modified Files: Esmart_Thumb.h esmart_thumb.c Log Message: EAPI =================================================================== RCS file: /cvs/e/e17/libs/esmart/src/lib/esmart_thumb/Esmart_Thumb.h,v retrieving revision 1.7 retrieving revision 1.8 diff -u -3 -r1.7 -r1.8 --- Esmart_Thumb.h 4 Sep 2005 19:00:25 -0000 1.7 +++ Esmart_Thumb.h 6 Sep 2006 07:17:48 -0000 1.8 @@ -1,6 +1,27 @@ #ifndef _ESMART_THUMB_H #define _ESMART_THUMB_H +#ifdef EAPI +#undef EAPI +#endif +#ifdef WIN32 +# ifdef BUILDING_DLL +# define EAPI __declspec(dllexport) +# else +# define EAPI __declspec(dllimport) +# endif +#else +# ifdef __GNUC__ +# if __GNUC__ >= 4 +# define EAPI __attribute__ ((visibility("default"))) +# else +# define EAPI +# endif +# else +# define EAPI +# endif +#endif + #include <Evas.h> #ifdef __cplusplus @@ -22,7 +43,7 @@ /** * esmart_thumb_free - free an E_Thumb smart object */ - void esmart_thumb_free (Evas_Object * o); + EAPI void esmart_thumb_free (Evas_Object * o); /** * esmart_thumb_new - create a new E_Thumb object. If the freedesktop cached * thumbnail exists it loads it, if not it creates it. There's some @@ -30,20 +51,20 @@ * @evas - the evas we want to add the object to * @file - the name of the file we want a thumb of */ - Evas_Object *esmart_thumb_new (Evas * evas, const char *file); + EAPI Evas_Object *esmart_thumb_new (Evas * evas, const char *file); /** * esmart_thumb_file_get - get the full path to the thumbnail's real image * @o - The smart object we want the filename for * Returns a pointer to the filename, you should NOT free this memory */ - const char *esmart_thumb_file_get (Evas_Object * o); + EAPI const char *esmart_thumb_file_get (Evas_Object * o); /** * esmart_thumb_geometry_get - Get the geometry of the source image * @o - The smart object we want the geometry of * @w - A pointer to somewhere we can store the width * @h - A pointer to somewhere we can store the height */ - void esmart_thumb_geometry_get (Evas_Object * o, int *w, int *h); + EAPI void esmart_thumb_geometry_get (Evas_Object * o, int *w, int *h); /** * esmart_thumb_evas_object_get - Load the image file to an evas object @@ -51,21 +72,21 @@ * @orient - 1 to auto orient, 0 to just load as is * Returns a valid Evas_Object if imlib2 or evas can load the file */ - Evas_Object *esmart_thumb_evas_object_get (Evas_Object * o, int orient); + EAPI Evas_Object *esmart_thumb_evas_object_get (Evas_Object * o, int orient); /** * esmart_thumb_evas_object_image_get - the actual image object in the thumb * @o - the object returned from esmart_thumb_new * Returns a valid Evas_Object* on success, NULL on no image */ - Evas_Object *esmart_thumb_evas_object_image_get (Evas_Object * o); + EAPI Evas_Object *esmart_thumb_evas_object_image_get (Evas_Object * o); /** * esmart_thumb_format_get - get the format of the image this thumb is for * @o - The smart object we want the format for * NOTE: Don't free this string, dupe it if you wanna keep it around */ - const char *esmart_thumb_format_get (Evas_Object * o); + EAPI const char *esmart_thumb_format_get (Evas_Object * o); /** * esmart_thumb_freshen - forced reloading of the thumbnail image from disk @@ -73,29 +94,29 @@ * Returns EPSILON_OK if the cache was bad and we regenerated, EPSILON_FAIL * if the cached image is still valid */ - int esmart_thumb_freshen (Evas_Object * o); + EAPI int esmart_thumb_freshen (Evas_Object * o); /** * esmart_thumb_exif_get - Get whether or not the exif data is present * @o - The smart object we're curious about * Returns 1 if exif data is present in the esmart_thumb, 0 if not */ - int esmart_thumb_exif_get (Evas_Object * o); + EAPI int esmart_thumb_exif_get (Evas_Object * o); /** * esmart_thumb_exif_data_as_string_get - Get an exif tag as a string * @o - The smart object we're curious about * @prop - The exif prop you want * Returns NULL if not found, string value for the tag if present */ - const char *esmart_thumb_exif_data_as_string_get (Evas_Object * o, int lvl, - int prop); + EAPI const char *esmart_thumb_exif_data_as_string_get (Evas_Object * o, int lvl, + int prop); /** * esmart_thumb_exif_data_as_int_get - Get an exif tag as an int * @o - The smart object we're curious about * @prop - The exif prop you want * Returns -1 if not found, string value for the tag if present */ - int esmart_thumb_exif_data_as_int_get (Evas_Object * o, int lvl, int prop); + EAPI int esmart_thumb_exif_data_as_int_get (Evas_Object * o, int lvl, int prop); #ifdef __cplusplus } =================================================================== RCS file: /cvs/e/e17/libs/esmart/src/lib/esmart_thumb/esmart_thumb.c,v retrieving revision 1.12 retrieving revision 1.13 diff -u -3 -r1.12 -r1.13 --- esmart_thumb.c 16 Feb 2005 01:07:59 -0000 1.12 +++ esmart_thumb.c 6 Sep 2006 07:17:48 -0000 1.13 @@ -36,7 +36,7 @@ static void _e_thumb_stack_below (Evas_Object * o, Evas_Object * below); static void _e_thumb_color_set (Evas_Object * o, int r, int g, int b, int a); -Evas_Object * +EAPI Evas_Object * esmart_thumb_new (Evas * evas, const char *file) { char buf[PATH_MAX]; @@ -146,13 +146,13 @@ return (result); } -void +EAPI void esmart_thumb_free (Evas_Object * o) { if (o) evas_object_del (o); } -const char * +EAPI const char * esmart_thumb_file_get (Evas_Object * o) { if (o) @@ -165,7 +165,7 @@ return (NULL); } -void +EAPI void esmart_thumb_geometry_get (Evas_Object * o, int *w, int *h) { if (o) @@ -182,7 +182,7 @@ } } } -Evas_Object * +EAPI Evas_Object * esmart_thumb_evas_object_get (Evas_Object * o, int orient) { Evas_Object *result = NULL; @@ -262,7 +262,7 @@ return (result); } -const char * +EAPI const char * esmart_thumb_format_get (Evas_Object * o) { char *result = NULL; @@ -281,7 +281,7 @@ return (result); } -int +EAPI int esmart_thumb_freshen (Evas_Object * o) { int result = EPSILON_FAIL; @@ -324,7 +324,7 @@ return (result); } -Evas_Object * +EAPI Evas_Object * esmart_thumb_evas_object_image_get (Evas_Object * o) { Evas_Object *result = NULL; @@ -340,7 +340,7 @@ } /*========================================================================*/ -int +EAPI int esmart_thumb_exif_get (Evas_Object * o) { int result = 0; @@ -361,7 +361,7 @@ } return (result); } -const char * +EAPI const char * esmart_thumb_exif_data_as_string_get (Evas_Object * o, int lvl, int prop) { const char *result = NULL; @@ -386,7 +386,7 @@ return (result); } -int +EAPI int esmart_thumb_exif_data_as_int_get (Evas_Object * o, int lvl, int prop) { int result = -1; ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs