#include <asm/sharp_apm.h>#include <unistd.h>#include <stdio.h>#include <signal.h>#include <fcntl.h>#include <sys/ioctl.h>#include <asm/sharp_char.h>Include dependency graph for custom-sharp.h:

Go to the source code of this file.
Defines | |
| #define | QPE_NOCIBAUD |
| #define | APM_IOC_BATTERY_BACK_CHK _IO(APM_IOC_MAGIC, 32) |
| #define | APM_IOC_BATTERY_MAIN_CHK _IO(APM_IOC_MAGIC, 33) |
| #define | QPE_HAVE_MEMALERTER |
| #define | QPE_MEMALERTER_IMPL |
| #define | QPE_INITIAL_NUMLOCK_STATE |
|
|
Definition at line 25 of file custom-sharp.h. |
|
|
Definition at line 28 of file custom-sharp.h. |
|
|
Definition at line 41 of file custom-sharp.h. |
|
|
Value: { \
bool numLock = FALSE; \
sharp_kbdctl_modifstat st; \
int dev = ::open("/dev/sharp_kbdctl", O_RDWR); \
if( dev >= 0 ) { \
memset(&st, 0, sizeof(st)); \
st.which = 3; \
int ret = ioctl(dev, SHARP_KBDCTL_GETMODIFSTAT, (char*)&st); \
if( !ret ) \
numLock = (bool)st.stat; \
::close(dev); \
} \
return numLock; \
}
Definition at line 81 of file custom-sharp.h. Referenced by initNumLock(). |
|
|
Definition at line 43 of file custom-sharp.h. |
|
|
Definition at line 21 of file custom-sharp.h. |
1.4.2