1 #ifndef _INCLUDE_LINUX_OSD_INIT_MACHINE 2 #define _INCLUDE_LINUX_OSD_INIT_MACHINE 3 4 #include <SDL.h> 5 #include <SDL_keysym.h> 6 7 #include "sys_dep.h" 8 #include "lang.h" 9 #include "pce.h" 10 #include "osd_sdl_gfx.h" 11 12 extern UChar gamepad; 13 // gamepad detected ? 14 15 extern char dump_snd; 16 // Do we write sound to file 17 18 extern int *fd[4]; 19 // handle for joypad devices 20 21 extern int test_parameter; 22 23 #if defined(ENABLE_NETPLAY) 24 25 #include <sys/times.h> 26 #include <sys/types.h> 27 #include <sys/socket.h> 28 #include <sys/un.h> 29 #include <unistd.h> 30 // #include <netinet/in.h> 31 // #include <netdb.h> 32 33 typedef enum {NETPLAY_SINGLE, NETPLAY_SERVER, NETPLAY_CLIENT} t_netplay_mode; 34 35 extern int netplay_mode; 36 37 extern struct sockaddr_in socket_address_other, socket_address_self; 38 39 extern int lenght_socket_address_other; 40 extern int lenght_socket_address_self; 41 42 extern int socket_other; 43 extern int socket_self; 44 45 #endif 46 47 #endif 48