Update of /cvsroot/pure-data/externals/io/hidio In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4120
Modified Files: hidio_windows.c Log Message: more orless working Windows code, needs to be adapted to work with global element[][] array
Index: hidio_windows.c =================================================================== RCS file: /cvsroot/pure-data/externals/io/hidio/hidio_windows.c,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** hidio_windows.c 3 Jan 2007 06:33:25 -0000 1.7 --- hidio_windows.c 3 Jan 2007 11:07:20 -0000 1.8 *************** *** 25,34 **** #include <winbase.h> #include <stdio.h> ! #include <setupapi.h> ! ! /* ! * Please note that this file needs the Microsoft Driver Developent Kit (DDK) ! * to be installed in order to compile! ! */
#ifdef _MSC_VER [...1596 lines suppressed...] ! ! if (self) ! freebytes(self, sizeof(t_hid_device)); }
! void *hidio_platform_specific_new(t_hidio *x) ! { ! t_hid_device *self; ! ! debug_print(LOG_DEBUG,"hidio_platform_specific_new"); ! ! /* alloc memory for our instance */ ! self = (t_hid_device *)getbytes(sizeof(t_hid_device)); ! self->fh = INVALID_HANDLE_VALUE; ! ! return (void *)self; /* return void pointer to our data struct */ ! }
#endif /* _WINDOWS */