Move some struct and enum defines from header file 36/228636/5
authorhj kim <backto.kim@samsung.com>
Tue, 24 Mar 2020 08:29:12 +0000 (17:29 +0900)
committerhj kim <backto.kim@samsung.com>
Wed, 25 Mar 2020 23:47:05 +0000 (23:47 +0000)
Change-Id: I92d05bb314633d358b98c0d78477c1d4a607e472

src/common/media-svc-db-utils.c
src/common/media-svc-util.c
src/include/common/media-svc-env.h

index d0f0ca4..a9f0da2 100755 (executable)
 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;
index 69a4a1b..c3d3b1c 100644 (file)
@@ -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},
index a428d27..c4be6f0 100755 (executable)
@@ -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