diff options
author | Boram Park <boram1288.park@samsung.com> | 2015-02-04 15:25:01 +0900 |
---|---|---|
committer | Boram Park <boram1288.park@samsung.com> | 2015-02-04 15:37:59 +0900 |
commit | b54c1f7121b30e01cc3f2cee84a9818d0473aaa5 (patch) | |
tree | 1abe835114a6415d645408d684f770330ef0ff21 /src/media_key.c | |
parent | becd934a2f1d620dbe1c7ae0915d574478c3eba8 (diff) | |
download | media-key-b54c1f7121b30e01cc3f2cee84a9818d0473aaa5.tar.gz media-key-b54c1f7121b30e01cc3f2cee84a9818d0473aaa5.tar.bz2 media-key-b54c1f7121b30e01cc3f2cee84a9818d0473aaa5.zip |
fix build issue for x and wayland environmentsubmit/tizen/20150204.052453accepted/tizen/wearable/20150205.062051accepted/tizen/tv/20150205.022559accepted/tizen/mobile/20150205.042009accepted/tizen/common/20150204.154316tizen_3.0.2015.q1_commontizen_3.0.2014.q4_common
Change-Id: I8b64952a52a4b85566341ec40ed9dd0a2be80405
Diffstat (limited to 'src/media_key.c')
-rw-r--r-- | src/media_key.c | 8 |
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; |