summaryrefslogtreecommitdiff
path: root/src/include/util
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/util')
-rwxr-xr-xsrc/include/util/media-thumb-debug.h12
-rwxr-xr-xsrc/include/util/media-thumb-util.h13
2 files changed, 12 insertions, 13 deletions
diff --git a/src/include/util/media-thumb-debug.h b/src/include/util/media-thumb-debug.h
index 66ae59e..47b519e 100755
--- a/src/include/util/media-thumb-debug.h
+++ b/src/include/util/media-thumb-debug.h
@@ -45,23 +45,23 @@
#define FONT_COLOR_CYAN "\033[36m"
#define FONT_COLOR_GRAY "\033[37m"
-#define thumb_dbg(fmt, arg...) do{ \
+#define thumb_dbg(fmt, arg...) do { \
LOGD(FONT_COLOR_RESET fmt "\n", ##arg); \
} while (0)
-#define thumb_warn(fmt, arg...) do{ \
+#define thumb_warn(fmt, arg...) do { \
LOGW(FONT_COLOR_GREEN fmt "\n", ##arg); \
} while (0)
-#define thumb_err(fmt, arg...) do{ \
+#define thumb_err(fmt, arg...) do { \
LOGE(FONT_COLOR_RED fmt "\n", ##arg); \
} while (0)
-#define thumb_dbg_slog(fmt, arg...) do{ \
+#define thumb_dbg_slog(fmt, arg...) do { \
SECURE_LOGD(FONT_COLOR_RESET fmt "\n", ##arg); \
} while (0)
-#define thumb_warn_slog(fmt, arg...) do{ \
+#define thumb_warn_slog(fmt, arg...) do { \
SECURE_LOGW(FONT_COLOR_GREEN fmt "\n", ##arg); \
} while (0)
@@ -76,7 +76,7 @@
void thumb_init_file_debug();
void thumb_close_file_debug();
FILE* get_fp();
-#define thumb_file_dbg(fmt,arg...) fprintf( get_fp(), "[%s: %d] " fmt "\n", __FUNCTION__, __LINE__, ##arg)
+#define thumb_file_dbg(fmt, arg...) fprintf(get_fp(), "[%s: %d] " fmt "\n", __FUNCTION__, __LINE__, ##arg)
#endif
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;