1 /* 2 * Copyright (C) 2011-2018 Team Kodi 3 * This file is part of Kodi - https://kodi.tv 4 * 5 * SPDX-License-Identifier: GPL-2.0-or-later 6 * See LICENSES/README.md for more information. 7 */ 8 9 #pragma once 10 11 #include <WS2tcpip.h> 12 #include <Winsock2.h> 13 #include <ws2bth.h> 14 15 #ifndef SHUT_RDWR 16 #define SHUT_RDWR SD_BOTH 17 #endif 18 19 #ifndef SHUT_RD 20 #define SHUT_RD SD_RECEIVE 21 #endif 22 23 #ifndef SHUT_WR 24 #define SHUT_WR SD_SEND 25 #endif 26 27 28 #ifndef AF_BTH 29 #define AF_BTH 32 30 #endif 31 32 #ifndef BTHPROTO_RFCOMM 33 #define BTHPROTO_RFCOMM 3 34 #endif 35 36 #ifndef AF_BLUETOOTH 37 #define AF_BLUETOOTH AF_BTH 38 #endif 39 40 #ifndef BTPROTO_RFCOMM 41 #define BTPROTO_RFCOMM BTHPROTO_RFCOMM 42 #endif 43 44 typedef int socklen_t; 45 46