pndnotifyd: fix some crashes
[pandora-libraries.git] / include / pnd_io_ioctl.h
1 #ifndef h_pnd_io_ioctl_h
2 #define h_pnd_io_ioctl_h
3
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7
8 // this is a simple 'is key pressed?' type routine, using standard ioctl; if you don't want to
9 // monitor the events and just ewant to see whats up, this can be handy.
10 // returns -1 on error, 0 for 'not down', and >0 for 'is down'
11 int pnd_is_key_down ( int fd, int key );
12
13 #ifdef __cplusplus
14 } /* "C" */
15 #endif
16
17 #endif