From: hj kim Date: Tue, 24 Mar 2020 08:29:12 +0000 (+0900) Subject: Move some struct and enum defines from header file X-Git-Tag: accepted/tizen/unified/20200331.030833~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F36%2F228636%2F5;p=platform%2Fcore%2Fmultimedia%2Flibmedia-service.git Move some struct and enum defines from header file Change-Id: I92d05bb314633d358b98c0d78477c1d4a607e472 --- diff --git a/src/common/media-svc-db-utils.c b/src/common/media-svc-db-utils.c index d0f0ca4..a9f0da2 100755 --- a/src/common/media-svc-db-utils.c +++ b/src/common/media-svc-db-utils.c @@ -33,6 +33,24 @@ static GHashTable *table; static GSList *column_list[MEDIA_SVC_DB_LIST_MAX]; +typedef struct { + char *trigger_name; + char *view_name; + char *event_table; + char *action_table; +} table_info_s; + +typedef struct { + char *name; + char *type; + char *option; + int version; + char *index_name; + bool is_unique; + bool is_trigger; + bool is_view; +} column_info_s; + static int __media_svc_add_table_info(const char *name, const char *trigger_name, const char *event_table, const char *action_table, const char *view_name) { table_info_s *tbl = NULL; diff --git a/src/common/media-svc-util.c b/src/common/media-svc-util.c index 69a4a1b..c3d3b1c 100644 --- a/src/common/media-svc-util.c +++ b/src/common/media-svc-util.c @@ -83,6 +83,18 @@ typedef struct { int category_by_mime; } _media_svc_content_table_s; +enum Exif_Orientation { + NOT_AVAILABLE = 0, + NORMAL = 1, + HFLIP = 2, + ROT_180 = 3, + VFLIP = 4, + TRANSPOSE = 5, + ROT_90 = 6, + TRANSVERSE = 7, + ROT_270 = 8 +}; + static const _media_svc_content_table_s content_category[CONTENT_TYPE_NUM] = { {"audio", MEDIA_SVC_CATEGORY_SOUND}, {"image", MEDIA_SVC_CATEGORY_IMAGE}, diff --git a/src/include/common/media-svc-env.h b/src/include/common/media-svc-env.h index a428d27..c4be6f0 100755 --- a/src/include/common/media-svc-env.h +++ b/src/include/common/media-svc-env.h @@ -131,18 +131,6 @@ extern "C" { #define MEDIA_SVC_TAG_UNKNOWN "" -enum Exif_Orientation { - NOT_AVAILABLE = 0, - NORMAL = 1, - HFLIP = 2, - ROT_180 = 3, - VFLIP = 4, - TRANSPOSE = 5, - ROT_90 = 6, - TRANSVERSE = 7, - ROT_270 = 8 -}; - typedef enum { MEDIA_SVC_QUERY_SCANNER, MEDIA_SVC_QUERY_UPDATE_COMMON, @@ -163,25 +151,6 @@ typedef enum { MEDIA_SVC_DB_LIST_MAX, } media_svc_table_slist_e; -typedef struct { - char *trigger_name; - char *view_name; - char *event_table; - char *action_table; -} table_info_s; - -typedef struct { - char *name; - char *type; - char *option; - int version; - char *index_name; - bool is_unique; - bool is_trigger; - bool is_view; -} column_info_s; - - #ifdef __cplusplus } #endif