#ifndef SYNC_DEVICE_H #define SYNC_DEVICE_H #include "base.h" #include "sync.h" #ifndef SYNC_PLAYER /* configure socket-stack */ #ifdef _WIN32 #define WIN32_LEAN_AND_MEAN #define USE_GETADDRINFO #ifndef NOMINMAX #define NOMINMAX #endif #include #include #include #include #elif defined(USE_AMITCP) #include #include #include #include #define SOCKET int #define INVALID_SOCKET -1 #define select(n,r,w,e,t) WaitSelect(n,r,w,e,t,0) #define closesocket(x) CloseSocket(x) #else #include #include #include #include #include #define SOCKET int #define INVALID_SOCKET -1 #define closesocket(x) close(x) #endif #endif /* !defined(SYNC_PLAYER) */ struct sync_device { char *base; struct sync_track **tracks; size_t num_tracks; #ifndef SYNC_PLAYER int row; SOCKET sock; #endif struct sync_io_cb io_cb; }; #endif /* SYNC_DEVICE_H */