diff options
author | Sung-Jin Park <sj76.park@samsung.com> | 2013-08-26 21:47:23 -0400 |
---|---|---|
committer | Sung-Jin Park <sj76.park@samsung.com> | 2013-09-03 03:14:38 -0400 |
commit | 4a5ef2b54728c3425615576ee85852abf401ca99 (patch) | |
tree | 1809c3d26f9ba3060010f6ce6241e17604c4887d | |
parent | 54dfe4a0a27ae249c2f51483b340a14888cbe873 (diff) | |
download | xproto-tizen_3.0.m14.2_ivi.tar.gz xproto-tizen_3.0.m14.2_ivi.tar.bz2 xproto-tizen_3.0.m14.2_ivi.zip |
- Add a key definition (XF86XK_AudioPlayPause) to help audio-aware application(s) change their play/pause status for Tizen mobiletizen_3.0.m14.2_ivi_releasesubmit/tizen_ivi_genivi/20140131.034401submit/tizen/20130912.233817submit/tizen/20130910.025215ivi_oct_m2accepted/tizen/ivi/genivi/20140131.040437accepted/tizen/20130913.064725accepted/tizen/20130913.012628accepted/tizen/20130913.000826accepted/tizen/20130910.205247accepted/tizen/20130910.202637accepted/tizen/20130910.194850accepted/tizen/20130910.183302accepted/tizen/20130910.123434tizen_ivi_genivitizen_3.0.m14.2_iviaccepted/tizen_genericaccepted/tizen/ivi/stableaccepted/tizen/ivi/genivi
- Increase XFD_SETSIZE
Change-Id: I9badeabbfdef1a48a952574a1cd3ce36cd25fe12
-rw-r--r-- | XF86keysym.h | 3 | ||||
-rw-r--r-- | Xpoll.h.in | 19 |
2 files changed, 20 insertions, 2 deletions
diff --git a/XF86keysym.h b/XF86keysym.h index df5e9cc..93ef385 100644 --- a/XF86keysym.h +++ b/XF86keysym.h @@ -231,3 +231,6 @@ #define XF86XK_Prev_VMode 0x1008FE23 /* prev. video mode available */ #define XF86XK_LogWindowTree 0x1008FE24 /* print window tree to log */ #define XF86XK_LogGrabInfo 0x1008FE25 /* print all active grabs to log */ + +/* Keys for special action keys for Tizen mobile */ +#define XF86XK_AudioPlayPause 0x1008E001 /* Start playing of audio or pause audio playing (toggle) */ @@ -67,10 +67,11 @@ typedef long fd_mask; # endif #endif -#define XFD_SETSIZE 256 - #ifndef FD_SETSIZE +#define XFD_SETSIZE 256 #define FD_SETSIZE XFD_SETSIZE +#else +#define XFD_SETSIZE FD_SETSIZE #endif #ifndef NBBY @@ -119,6 +120,19 @@ typedef struct fd_set { * array. before accessing an element in the array we check it exists. * If it does not exist then the compiler discards the code to access it. */ +static inline int +xfd_anyset(fd_set* p) +{ + int i; + for(i=0; i < howmany(FD_SETSIZE, NFDBITS); i++) + { + if(__XFDS_BITS(p, i)) return 1; + } + return 0; +} +#define XFD_ANYSET(p) (xfd_anyset(p)) + +/* Change Inline Function #define XFD_ANYSET(p) \ ((howmany(FD_SETSIZE, NFDBITS) > 0 && (__XFDS_BITS(p, 0))) || \ (howmany(FD_SETSIZE, NFDBITS) > 1 && (__XFDS_BITS(p, 1))) || \ @@ -128,6 +142,7 @@ typedef struct fd_set { (howmany(FD_SETSIZE, NFDBITS) > 5 && (__XFDS_BITS(p, 5))) || \ (howmany(FD_SETSIZE, NFDBITS) > 6 && (__XFDS_BITS(p, 6))) || \ (howmany(FD_SETSIZE, NFDBITS) > 7 && (__XFDS_BITS(p, 7)))) +*/ #define XFD_COPYSET(src,dst) { \ int __i__; \ |