%if 0%{?sec_product_feature_profile_wearable}
BuildRequires: pkgconfig(capi-base-common)
BuildRequires: pkgconfig(capi-appfw-service-application)
-BuildRequires: pkgconfig(capi-message-port)
BuildRequires: pkgconfig(capi-appfw-preference)
BuildRequires: pkgconfig(capi-system-device)
BuildRequires: pkgconfig(sap-client-stub-api)
#define SYNC_INTERVAL 24*60*60
#define MAX_WAIT_TIME 120*60*60
-#define REMOTE_APP_ID "com.samsung.w-input-selector"
-#define MESSAGE_PORT_REMOTE_NAME REMOTE_APP_ID"_msg_port_rcv"
-
#define MINIMUM_BATTERY 15
#define THUMBNAIL_WIDTH 96
{
bool result = false;
int ret;
- bool found = false;
bundle *b = bundle_create();
bundle_add_str(b, "command", cmd);
if (data)
bundle_add_str(b, "data", data);
- message_port_check_remote_port(REMOTE_APP_ID, MESSAGE_PORT_REMOTE_NAME, &found);
- if (found) {
- ret = message_port_send_message(REMOTE_APP_ID, MESSAGE_PORT_REMOTE_NAME, b);
- if (ret != MESSAGE_PORT_ERROR_NONE)
- {
- LOGW("message port send message error. err : %d", ret);
- result = false;
- }
- else
- {
- LOGI("Succeed to send message.");
- result = true;
- }
- }
- else
- {
- LOGW("Can't find remote port");
- result = false;
- }
-
ret = event_publish_app_event(EVENT_NAME, b);
if (ret != EVENT_ERROR_NONE) {
result = false;