ADD_EXECUTABLE(${PROJECT_NAME} src/emuld.cpp src/evdi.cpp src/emuld_proc.cpp src/client.cpp src/get_status.cpp src/log.cpp)
target_link_libraries(${PROJECT_NAME} ${rpkgs_LDFLAGS} ${GLES_LDFLAGS})
-TARGET_LINK_LIBRARIES(${PROJECT_NAME} "-lpthread -lvconf -lpmapi" )
+TARGET_LINK_LIBRARIES(${PROJECT_NAME} "-lpthread -lvconf -ldeviced" )
install(TARGETS ${PROJECT_NAME} DESTINATION /usr/bin)
Name: emuld
-Version: 0.4.2
+Version: 0.4.3
Release: 0
Summary: Emulator daemon
License: Apache-2.0
Source1001: packaging/emuld.manifest
BuildRequires: cmake
BuildRequires: pkgconfig(vconf)
-BuildRequires: pkgconfig(pmapi)
+BuildRequires: pkgconfig(deviced)
%description
A emulator daemon is used for communication emulator between and ide.
#include "emuld_common.h"
#include "emuld.h"
#include "synbuf.h"
-#include "pmapi.h"
+#include "deviced/dd-display.h"
#define PMAPI_RETRY_COUNT 3
#define MAX_CONNECT_TRY_COUNT (60 * 3)
int ret = 0;
// Now we blocking to enter "SLEEP".
while(i < PMAPI_RETRY_COUNT ) {
- ret = pm_lock_state(LCD_OFF, STAY_CUR_STATE, 0);
- LOG("pm_lock_state() return: %d", ret);
+ ret = display_lock_state(LCD_OFF, STAY_CUR_STATE, 0);
+ LOG("display_lock_state() return: %d", ret);
if(ret == 0)
{
break;
sleep(10);
}
if (i == PMAPI_RETRY_COUNT) {
- LOG("Emulator Daemon: Failed to call pm_lock_state().\n");
+ LOG("Emulator Daemon: Failed to call display_lock_state().\n");
}
}