summaryrefslogtreecommitdiff
path: root/src/media_key.c
diff options
context:
space:
mode:
authorBoram Park <boram1288.park@samsung.com>2015-02-04 15:25:01 +0900
committerBoram Park <boram1288.park@samsung.com>2015-02-04 15:37:59 +0900
commitb54c1f7121b30e01cc3f2cee84a9818d0473aaa5 (patch)
tree1abe835114a6415d645408d684f770330ef0ff21 /src/media_key.c
parentbecd934a2f1d620dbe1c7ae0915d574478c3eba8 (diff)
downloadmedia-key-b54c1f7121b30e01cc3f2cee84a9818d0473aaa5.tar.gz
media-key-b54c1f7121b30e01cc3f2cee84a9818d0473aaa5.tar.bz2
media-key-b54c1f7121b30e01cc3f2cee84a9818d0473aaa5.zip
Change-Id: I8b64952a52a4b85566341ec40ed9dd0a2be80405
Diffstat (limited to 'src/media_key.c')
-rw-r--r--src/media_key.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/media_key.c b/src/media_key.c
index bb1325e..1afc54e 100644
--- a/src/media_key.c
+++ b/src/media_key.c
@@ -18,7 +18,9 @@
#include <aul.h>
#include <media_key.h>
#include <string.h>
-#include <efl_util.h>
+#if X11
+#include <utilX.h>
+#endif
#include <dlog.h>
#ifdef LOG_TAG
@@ -47,6 +49,7 @@ static int __aul_key_handler(bundle *b, void *data)
key_str = (char *)bundle_get_val(b, AUL_K_MULTI_KEY);
event_str = (char *)bundle_get_val(b, AUL_K_MULTI_KEY_EVENT);
+#if X11
if (!strcmp(key_str, KEY_PLAYCD)) {
key = MEDIA_KEY_PLAY;
} else if (!strcmp(key_str, KEY_STOPCD)) {
@@ -62,6 +65,9 @@ static int __aul_key_handler(bundle *b, void *data)
} else if (!strcmp(key_str, KEY_FASTFORWARD)) {
key = MEDIA_KEY_FASTFORWARD;
}
+#else
+ LOGE("[%s] not implemented for wayland", __FUNCTION__);
+#endif
if (!strcmp(event_str, AUL_V_KEY_RELEASED)) {
event = MEDIA_KEY_STATUS_RELEASED;