diff options
author | dykim <dydot1.kim@samsung.com> | 2012-02-15 14:01:45 +0900 |
---|---|---|
committer | dykim <dydot1.kim@samsung.com> | 2012-02-15 14:01:45 +0900 |
commit | 43c6da3f6d4597ee510fe85706c37d265558c227 (patch) | |
tree | 276fa52ca39177771d6b0cf4fc6f7021bbc89e99 | |
parent | bbcb8cbc57c056b87231ffa091842a4a91106582 (diff) | |
download | media-content-43c6da3f6d4597ee510fe85706c37d265558c227.tar.gz media-content-43c6da3f6d4597ee510fe85706c37d265558c227.tar.bz2 media-content-43c6da3f6d4597ee510fe85706c37d265558c227.zip |
changed the error for updating favorite
-rw-r--r-- | CMakeLists.txt | 9 | ||||
-rw-r--r-- | debian/changelog | 8 | ||||
-rwxr-xr-x | debian/rules | 5 | ||||
-rw-r--r-- | src/media_info.c | 4 |
4 files changed, 24 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index afe6d8c..700b6e8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 diff --git a/debian/changelog b/debian/changelog index 9749d11..89d0496 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 diff --git a/debian/rules b/debian/rules index c1aedf9..635cbb5 100755 --- a/debian/rules +++ b/debian/rules @@ -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 diff --git a/src/media_info.c b/src/media_info.c index 5ac4178..38054ef 100644 --- a/src/media_info.c +++ b/src/media_info.c @@ -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);
}
ret = _content_error_capi(MEDIA_CONTENT_TYPE,ret);
+ if(ret == MEDIA_CONTENT_ERROR_NONE)
+ {
+ _media->favorite = favorite;
+ }
}
else
{
|