AC_SUBST(AUL_CFLAGS)
AC_SUBST(AUL_LIBS)
-PKG_CHECK_MODULES(LIBPMCONTROL, pmapi)
+PKG_CHECK_MODULES(LIBPMCONTROL, deviced)
AC_SUBST(LIBPMCONTROL_CFLAGS)
AC_SUBST(LIBPMCONTROL_LIBS)
BuildRequires: pkgconfig(vconf)
BuildRequires: pkgconfig(dlog)
BuildRequires: pkgconfig(aul)
-BuildRequires: pkgconfig(pmapi)
+BuildRequires: pkgconfig(deviced)
BuildRequires: pkgconfig(dbus-glib-1)
BuildRequires: pkgconfig(sqlite3)
BuildRequires: pkgconfig(db-util)
#include <dirent.h>
#include <errno.h>
#include <malloc.h>
-#include <pmapi.h>
#include <vconf.h>
#include "media-util.h"
#include <dirent.h>
#include <errno.h>
#include <malloc.h>
-#include <pmapi.h>
+#include <dd-display.h>
#include <vconf.h>
#include "media-util.h"
switch (status) {
case MS_DB_UPDATING:
- err = pm_lock_state(LCD_OFF, STAY_CUR_STATE, 0);
+ err = display_lock_state(LCD_OFF, STAY_CUR_STATE, 0);
if (err != 0)
res = MS_MEDIA_ERR_INTERNAL;
break;
case MS_DB_UPDATED:
- err = pm_unlock_state(LCD_OFF, STAY_CUR_STATE);
+ err = display_unlock_state(LCD_OFF, PM_RESET_TIMER);
if (err != 0)
res = MS_MEDIA_ERR_INTERNAL;
break;
#include <sys/stat.h>
#include <fcntl.h>
#include <errno.h>
-#include <pmapi.h>
+#include <dd-display.h>
#include "media-common-utils.h"
#include "media-common-external-storage.h"
msc_get_power_status(&power_off_status);
if (power_off_status) {
- pm_unlock_state(LCD_OFF, STAY_CUR_STATE);
+ display_unlock_state(LCD_OFF, PM_RESET_TIMER);
}
msc_deinit_extract_thread();
#include <dirent.h>
#include <errno.h>
#include <malloc.h>
-#include <pmapi.h>
+#include <dd-display.h>
#include <vconf.h>
#include <grp.h>
#include <pwd.h>
switch (status) {
case MS_DB_UPDATING:
- err = pm_lock_state(LCD_OFF, STAY_CUR_STATE, 0);
+ err = display_lock_state(LCD_OFF, STAY_CUR_STATE, 0);
if (err != 0)
res = MS_MEDIA_ERR_INTERNAL;
break;
case MS_DB_UPDATED:
- err = pm_unlock_state(LCD_OFF, STAY_CUR_STATE);
+ err = display_unlock_state(LCD_OFF, PM_RESET_TIMER);
if (err != 0)
res = MS_MEDIA_ERR_INTERNAL;
break;