# Check package manager
PKG_CHECK_MODULES(PACKAGE_MANAGER, [capi-appfw-package-manager])
+# Check AUL
+PKG_CHECK_MODULES(AUL, [aul])
+
# Check App Control
PKG_CHECK_MODULES(APP_CONTROL, [capi-appfw-app-control])
ecoresocket_la_SOURCES = ecore_socket_panel_agent_module.cpp
-ecoresocket_la_CXXFLAGS = @DLOG_CFLAGS@ @ECORE_CFLAGS@
+ecoresocket_la_CXXFLAGS = @DLOG_CFLAGS@ @ECORE_CFLAGS@ @AUL_CFLAGS@
ecoresocket_la_LDFLAGS = -avoid-version \
-rpath $(moduledir) \
@LIBTOOL_EXPORT_OPTIONS@ \
@LTLIBINTL@ \
@DLOG_LIBS@ \
+ @AUL_LIBS@ \
@ECORE_LIBS@
ecoresocket_la_LIBADD = $(top_builddir)/ism/src/libscim@SCIM_EPOCH@.la
#include <string.h>
#include <sys/types.h>
#include <sys/times.h>
+#include <sys/socket.h>
#include <dlog.h>
#include <unistd.h>
#include <Ecore.h>
+#include <aul.h>
#include "scim_private.h"
#include "scim.h"
#include "scim_stl_map.h"
#include "isf_debug.h"
+#include <errno.h>
#ifdef LOG_TAG
# undef LOG_TAG
std::vector<int> count;
};
+void aul_wakeup_ime_application(int sockfd)
+{
+ struct ucred ucred;
+ socklen_t len = sizeof(struct ucred);
+ if (getsockopt(sockfd, SOL_SOCKET, SO_PEERCRED, &ucred, &len) == 0) {
+ int ret = aul_update_freezer_status((long)ucred.pid, "wakeup");
+ LOGD("aul_update_freezer_status : %d %d\n", ucred.pid, ret);
+ } else {
+ LOGD("getsockopt failed : %d\n", errno);
+ }
+}
#define DEFAULT_CONTEXT_VALUE 0xfff
#define scim_module_init ecoresocket_LTX_scim_module_init
LOGD ("client id:%d\n", client);
Socket client_socket(client);
+
+ aul_wakeup_ime_application(client_socket.get_id());
+
m_send_trans.clear();
m_send_trans.put_command(SCIM_TRANS_CMD_REPLY);
m_send_trans.put_data(context);
LOGD ("client id:%d\n", client);
Socket client_socket(client);
+
+ aul_wakeup_ime_application(client_socket.get_id());
+
m_send_trans.clear();
m_send_trans.put_command(SCIM_TRANS_CMD_REPLY);
m_send_trans.put_data(context);
LOGD ("client id:%d\n", client);
Socket client_socket(client);
+
+ aul_wakeup_ime_application(client_socket.get_id());
+
m_send_trans.clear();
m_send_trans.put_command(SCIM_TRANS_CMD_REPLY);
m_send_trans.put_data(context);
BuildRequires: pkgconfig(libtzplatform-config)
BuildRequires: pkgconfig(pkgmgr-info)
BuildRequires: pkgconfig(db-util)
+BuildRequires: pkgconfig(aul)
BuildRequires: pkgconfig(capi-appfw-app-control)
BuildRequires: pkgconfig(capi-appfw-application)
BuildRequires: pkgconfig(cynara-client)