changed the error for updating favorite
authordykim <dydot1.kim@samsung.com>
Wed, 15 Feb 2012 05:01:45 +0000 (14:01 +0900)
committerdykim <dydot1.kim@samsung.com>
Wed, 15 Feb 2012 05:01:45 +0000 (14:01 +0900)
CMakeLists.txt
debian/changelog
debian/rules
src/media_info.c

index afe6d8ceaecc73f540b3fbdbb07035f932ab9cec..700b6e8295d75f949ced4b53e9ddaa01dad0f3b2 100644 (file)
@@ -25,7 +25,7 @@ IF("${ARCH}" STREQUAL "arm")
 ENDIF("${ARCH}" STREQUAL "arm")
 
 ADD_DEFINITIONS("-DPREFIX=\"${CMAKE_INSTALL_PREFIX}\"")
-ADD_DEFINITIONS("-DSLP_DEBUG")
+ADD_DEFINITIONS("-DTIZEN_DEBUG")
 
 SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib")
 
@@ -34,6 +34,13 @@ ADD_LIBRARY(${fw_name} SHARED ${SOURCES})
 
 TARGET_LINK_LIBRARIES(${fw_name} ${${fw_name}_LDFLAGS})
 
+SET_TARGET_PROPERTIES(${fw_name}
+     PROPERTIES
+     VERSION ${FULLVER}
+     SOVERSION ${MAJORVER}
+     CLEAN_DIRECT_OUTPUT 1
+)
+
 INSTALL(TARGETS ${fw_name} DESTINATION lib)
 INSTALL(
         DIRECTORY ${INC_DIR}/ DESTINATION include/media-content
index 9749d1123c269ea0d246654094ee2cce01ff24c4..89d04964fe56d86f87e4d880758e621a7530356b 100644 (file)
@@ -1,3 +1,11 @@
+capi-content-media-content (0.1.0-14) unstable; urgency=low
+
+  * fixed an error
+  * Git: api/media-content
+  * Tag: capi-content-media-content_0.1.0-14
+
+ -- Dongyoung Kim <dydot1.kim@samsung.com>  Tue, 14 Feb 2012 19:13:07 +0900
+
 capi-content-media-content (0.1.0-13) unstable; urgency=low
 
   * changed the query
index c1aedf9158ef794caa148a854352fb6fa6405f04..635cbb51e2e3bf7a7919ddff12448e60f76159e9 100755 (executable)
@@ -2,6 +2,9 @@
 
 CFLAGS = -Wall -g
 
+FULLVER ?= $(shell dpkg-parsechangelog | grep Version: | cut -d ' ' -f 2 | cut -d '-' -f 1)
+MAJORVER ?= $(shell echo $(FULLVER) | cut -d '.' -f 1)
+
 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
        CFLAGS += -O0
 else
@@ -13,7 +16,7 @@ CMAKE_BUILD_DIR ?= $(CURDIR)/cmake_build_tmp
 configure: configure-stamp
 configure-stamp:
        dh_testdir
-       mkdir -p $(CMAKE_BUILD_DIR) && cd $(CMAKE_BUILD_DIR) && cmake ..
+       mkdir -p $(CMAKE_BUILD_DIR) && cd $(CMAKE_BUILD_DIR) && cmake .. -DFULLVER=${FULLVER} -DMAJORVER=${MAJORVER}
        touch configure-stamp
 
 
index 5ac4178817d8f75a95eaafc06f5152352bf11470..38054ef9a6c8228973c2ddf123616b9890c7d04e 100644 (file)
@@ -380,6 +380,10 @@ int media_info_update_favorite_to_db(media_info_h media, int favorite)
                        ret = minfo_update_media_favorite(db_handle, _media->item_id,favorite);\r
                }\r
                ret = _content_error_capi(MEDIA_CONTENT_TYPE,ret);\r
+               if(ret == MEDIA_CONTENT_ERROR_NONE)\r
+               {\r
+                       _media->favorite = favorite;\r
+               }\r
        }\r
        else\r
        {\r