src/MessagePortProxy.cpp
)
-SET(requires "dlog bundle glib-2.0 chromium")
+SET(requires "dlog bundle glib-2.0 aul chromium")
INCLUDE(FindPkgConfig)
pkg_check_modules(${this_target} REQUIRED ${requires})
TARGET_LINK_LIBRARIES(${this_target} "-lbundle" )
TARGET_LINK_LIBRARIES(${this_target} "-lglib-2.0" )
TARGET_LINK_LIBRARIES(${this_target} "-lchromium" )
-TARGET_LINK_LIBRARIES(${this_target} "-lcapi-appfw-app-manager" )
+TARGET_LINK_LIBRARIES(${this_target} "-laul" )
SET_TARGET_PROPERTIES(${this_target}
PROPERTIES
prefix=@PREFIX@
exec_prefix=/usr
libdir=@LIB_INSTALL_DIR@
-includedir=/usr/include/appfw
+includedir=@INCLUDE_INSTALL_DIR@/appfw
Name: @PC_NAME@
Description: @PACKAGE_DESCRIPTION@
BuildRequires: pkgconfig(bundle)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(chromium)
-BuildRequires: pkgconfig(capi-appfw-app-manager)
+BuildRequires: pkgconfig(aul)
# runtime requires
Requires: chromium
#include <unistd.h>
#include <sstream>
-#include <app_manager.h>
+#include <aul/aul.h>
#include "message-port.h"
#include "message-port-messages.h"
__pIpcClient = pIpcClient;
int pid = getpid();
- char* pAppId = NULL;
- ret = app_manager_get_app_id(pid, &pAppId);
- if (ret < 0)
+ char buffer[256] = {0, };
+
+ ret = aul_app_get_appid_bypid(pid, buffer, sizeof(buffer));
+ if (ret != AUL_R_OK)
{
- _LOGE("Failed to get_app_id: %d", ret);
+ _LOGE("Failed to get the application ID: %d", ret);
return MESSAGEPORT_ERROR_IO_ERROR;
}
- __appId = pAppId;
-
- free(pAppId);
+ __appId = buffer;
return MESSAGEPORT_ERROR_NONE;
}