X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?p=pandora-libraries.git;a=blobdiff_plain;f=include%2Fpnd_io_ioctl.h;h=c7394b16e673efe99a3b15ffc1fd7db89f47da9b;hp=5ed7b1d0a06c6ce03d2ceb251418bc4abfcb9faf;hb=9ecd26b3ce6465d77ec7890c1629cb9f222753ce;hpb=b5d6255f28c58bae0d6424ab5080fae1c2928575 diff --git a/include/pnd_io_ioctl.h b/include/pnd_io_ioctl.h index 5ed7b1d..c7394b1 100644 --- a/include/pnd_io_ioctl.h +++ b/include/pnd_io_ioctl.h @@ -1,9 +1,17 @@ #ifndef h_pnd_io_ioctl_h #define h_pnd_io_ioctl_h +#ifdef __cplusplus +extern "C" { +#endif + // this is a simple 'is key pressed?' type routine, using standard ioctl; if you don't want to // monitor the events and just ewant to see whats up, this can be handy. // returns -1 on error, 0 for 'not down', and >0 for 'is down' int pnd_is_key_down ( int fd, int key ); +#ifdef __cplusplus +} /* "C" */ +#endif + #endif