power: replace pmapi to libdeviced to lock power state 60/60160/1 accepted/tizen/common/20160310.145855 accepted/tizen/common/20160311.013808 accepted/tizen/ivi/20160311.013657 accepted/tizen/ivi/20160311.063319 accepted/tizen/mobile/20160302.073230 accepted/tizen/mobile/20160311.013331 accepted/tizen/tv/20160302.073339 accepted/tizen/tv/20160311.013456 accepted/tizen/wearable/20160302.073414 accepted/tizen/wearable/20160311.013551 submit/tizen/20160311.010651 submit/tizen_common/20160310.011250 submit/tizen_ivi/20160311.011112 submit/tizen_mobile/20160302.051350 submit/tizen_tv/20160302.051355 submit/tizen_wearable/20160302.051400
authorTaeyoung Kim <ty317.kim@samsung.com>
Wed, 24 Feb 2016 01:38:19 +0000 (10:38 +0900)
committerTaeyoung Kim <ty317.kim@samsung.com>
Wed, 24 Feb 2016 01:38:19 +0000 (10:38 +0900)
- pmapi is not supported anymore and libdeviced supports
  the same operation. Thus the apis are replaced and
  the dependency for deviced is added

Change-Id: If888d0323a1c10498f0dfdb52dbd17e22ccf3c35
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
bt-share/CMakeLists.txt
bt-share/src/bt-share-common.c
bt-share/src/bt-share-ipc.c
packaging/bluetooth-share.spec

index fd4d951..ee57bc4 100644 (file)
@@ -19,7 +19,7 @@ INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/lib)
 INCLUDE(FindPkgConfig)
 pkg_check_modules(pkgs REQUIRED glib-2.0 bluetooth-api
                                aul dbus-glib-1 appcore-common
-                               dlog vconf syspopup-caller pmapi sysman
+                               dlog vconf syspopup-caller deviced
                                notification sqlite3 ecore-file
                                appsvc appcore-efl storage
                                capi-content-media-content
index 433a972..e622bb7 100644 (file)
@@ -17,7 +17,7 @@
  *
  */
 
-#include <pmapi.h>
+#include <dd-display.h>
 #include <glib.h>
 #include <fcntl.h>
 #include <unistd.h>
@@ -62,7 +62,7 @@ int _bt_share_block_sleep(gboolean is_block)
                                     block_sleep_count);
                        block_sleep_count = 0;
                } else if (block_sleep_count == 0) {
-                       result = pm_lock_state(LCD_OFF, STAY_CUR_STATE, 0);
+                       result = display_lock_state(LCD_OFF, STAY_CUR_STATE, 0);
                        if (result != 0) {
                                DBG("LCD Lock is failed with result code [%d]\n", result);
                        }
@@ -79,7 +79,7 @@ int _bt_share_block_sleep(gboolean is_block)
                                     block_sleep_count);
                        block_sleep_count = 0;
                } else if (block_sleep_count == 1) {
-                       result = pm_unlock_state(LCD_OFF, PM_RESET_TIMER);
+                       result = display_unlock_state(LCD_OFF, PM_RESET_TIMER);
                        if (result != 0) {
                                DBG("LCD Unlock is failed with result code [%d]\n",
                                             result);
index bd50144..b6682d9 100644 (file)
@@ -25,7 +25,6 @@
 #include <stdlib.h>
 #include <string.h>
 #include <notification.h>
-#include <sysman.h>
 #include <aul.h>
 #include <vconf.h>
 #include <bundle_internal.h>
index dd62b75..3f4a9da 100644 (file)
@@ -30,8 +30,7 @@ BuildRequires:  pkgconfig(ecore)
 #%endif
 BuildRequires:  pkgconfig(vconf)
 BuildRequires:  pkgconfig(syspopup-caller)
-BuildRequires:  pkgconfig(pmapi)
-BuildRequires:  pkgconfig(sysman)
+BuildRequires:  pkgconfig(deviced)
 BuildRequires:  pkgconfig(notification)
 BuildRequires:  pkgconfig(appsvc)
 BuildRequires:  pkgconfig(db-util)