[AT-SPI] Squashed implementation
[platform/core/uifw/dali-adaptor.git] / dali / internal / adaptor / tizen-wayland / adaptor-impl-tizen.cpp
index fb0cddd..af3ceb2 100755 (executable)
@@ -32,6 +32,8 @@
 #include <dali/internal/adaptor/tizen-wayland/dali-ecore-wayland.h>
 #endif
 
+#include <aul.h>
+#include <unistd.h>
 
 namespace Dali
 {
@@ -66,6 +68,14 @@ static void OnSystemLanguageChanged( system_settings_key_e key, void* data )
 
 } // namesapce
 
+std::string Adaptor::GetApplicationPackageName()
+{
+  char appname[4096] = {0};
+  int pid = getpid();
+  aul_app_get_pkgname_bypid( pid, appname, sizeof( appname ) );
+  return appname;
+}
+
 void Adaptor::GetDataStoragePath( std::string& path)
 {
 #ifdef USE_APPFW
@@ -91,6 +101,7 @@ void Adaptor::GetAppId( std::string& appId )
   if ( id )
   {
     appId = id;
+    free( id );
   }
   else
   {