diff options
Diffstat (limited to 'src/include/util/media-thumb-util.h')
-rwxr-xr-x | src/include/util/media-thumb-util.h | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/include/util/media-thumb-util.h b/src/include/util/media-thumb-util.h index 9c2e4d3..f8ff57a 100755 --- a/src/include/util/media-thumb-util.h +++ b/src/include/util/media-thumb-util.h @@ -25,9 +25,9 @@ #ifndef _MEDIA_THUMB_UTIL_H_ #define _MEDIA_THUMB_UTIL_H_ -#define SAFE_FREE(src) { if (src) {free(src); src = NULL;}} -#define THUMB_MALLOC(src, size) { if (size <= 0) {src = NULL;} \ - else { src = malloc(size); if (src) memset(src, 0x0, size);} } +#define SAFE_FREE(src) { if (src) {free(src); src = NULL; } } +#define THUMB_MALLOC(src, size) { if (size <= 0) {src = NULL; } \ + else { src = malloc(size); if (src) memset(src, 0x0, size); } } typedef enum { MEDIA_THUMB_BGRA, /* BGRA, especially provided for evas users */ @@ -38,16 +38,15 @@ typedef enum { #define THUMB_IMAGE_TYPE 0 /* Image */ #define THUMB_VIDEO_TYPE 1 /* Video */ -#define THUMB_PATH_PHONE MEDIA_ROOT_PATH_INTERNAL /**< File path prefix of files stored in phone */ -#define THUMB_PATH_MMC MEDIA_ROOT_PATH_SDCARD /**< File path prefix of files stored in mmc card */ +#define THUMB_PATH_PHONE MEDIA_ROOT_PATH_INTERNAL /**< File path prefix of files stored in phone */ +#define THUMB_PATH_MMC MEDIA_ROOT_PATH_SDCARD /**< File path prefix of files stored in mmc card */ #define THUMB_PHONE_PATH tzplatform_mkpath(TZ_USER_SHARE, "media/.thumb/phone") #define THUMB_MMC_PATH tzplatform_mkpath(TZ_USER_SHARE, "media/.thumb/mmc") #define THUMB_DEFAULT_PATH tzplatform_mkpath(TZ_USER_SHARE, "media/.thumb/thumb_default.png") -typedef enum -{ +typedef enum { THUMB_PHONE, /**< Stored only in phone */ THUMB_MMC /**< Stored only in MMC */ } media_thumb_store_type; |