From: <dan...@us...> - 2009-01-27 19:51:55
|
Revision: 1208 http://cegcc.svn.sourceforge.net/cegcc/?rev=1208&view=rev Author: dannybackx Date: 2009-01-27 19:51:50 +0000 (Tue, 27 Jan 2009) Log Message: ----------- Add various constant definitions for Bluetooth, from MSDN. Modified Paths: -------------- trunk/cegcc/src/w32api/ChangeLog.ce trunk/cegcc/src/w32api/include/winsock.h trunk/cegcc/src/w32api/include/winsock2.h Modified: trunk/cegcc/src/w32api/ChangeLog.ce =================================================================== --- trunk/cegcc/src/w32api/ChangeLog.ce 2009-01-25 13:41:11 UTC (rev 1207) +++ trunk/cegcc/src/w32api/ChangeLog.ce 2009-01-27 19:51:50 UTC (rev 1208) @@ -1,3 +1,8 @@ +2009-01-27 Danny Backx <dan...@us...> + + * include/winsock.h, include/winsock2.h: Add various macros to define + constants used for Bluetooth. + 2009-01-25 Danny Backx <dan...@us...> * include/pm.h: Merge with version submitted by Lars Munch. Modified: trunk/cegcc/src/w32api/include/winsock.h =================================================================== --- trunk/cegcc/src/w32api/include/winsock.h 2009-01-25 13:41:11 UTC (rev 1207) +++ trunk/cegcc/src/w32api/include/winsock.h 2009-01-27 19:51:50 UTC (rev 1208) @@ -164,8 +164,12 @@ #define IPPROTO_UDP 17 #define IPPROTO_IDP 22 #define IPPROTO_ND 77 +#define IPPROTO_RM 113 #define IPPROTO_RAW 255 #define IPPROTO_MAX 256 + +#define BTHPROTO_RFCOMM 3 + #define IPPORT_ECHO 7 #define IPPORT_DISCARD 9 #define IPPORT_SYSTAT 11 @@ -317,8 +321,14 @@ #define AF_BAN 21 #define AF_ATM 22 #define AF_INET6 23 +#ifdef _WIN32_WCE +#define AF_IRDA 22 +#else +#define AF_IRDA 26 +#endif +#define AF_BTH 32 #if !(defined (__INSIDE_CYGWIN__) || defined (__INSIDE_MSYS__)) -#define AF_MAX 24 +#define AF_MAX 33 struct sockaddr { u_short sa_family; char sa_data[14]; @@ -354,6 +364,8 @@ #define PF_BAN AF_BAN #define PF_ATM AF_ATM #define PF_INET6 AF_INET6 +#define PF_IRDA AF_IRDA +#define PF_BTH AF_BTH #define PF_MAX AF_MAX #define SOL_SOCKET 0xffff #define SOMAXCONN 5 Modified: trunk/cegcc/src/w32api/include/winsock2.h =================================================================== --- trunk/cegcc/src/w32api/include/winsock2.h 2009-01-25 13:41:11 UTC (rev 1207) +++ trunk/cegcc/src/w32api/include/winsock2.h 2009-01-27 19:51:50 UTC (rev 1208) @@ -184,6 +184,7 @@ #define IPPROTO_UDP 17 #define IPPROTO_IDP 22 #define IPPROTO_ND 77 +#define IPPROTO_RM 113 #define IPPROTO_RAW 255 #define IPPROTO_MAX 256 /* IPv6 options */ @@ -196,6 +197,9 @@ #define IPPROTO_ICMPV6 58 /* ICMPv6 */ #define IPPROTO_NONE 59 /* IPv6 no next header */ #define IPPROTO_DSTOPTS 60 /* IPv6 Destination options */ + +#define BTHPROTO_RFCOMM 3 + #define IPPORT_ECHO 7 #define IPPORT_DISCARD 9 #define IPPORT_SYSTAT 11 @@ -340,9 +344,10 @@ #else #define AF_IRDA 26 #endif +#define AF_BTH 32 #define AF_NETDES 28 #if !(defined (__INSIDE_CYGWIN__) || defined (__INSIDE_MSYS__)) -#define AF_MAX 29 +#define AF_MAX 33 struct sockaddr { u_short sa_family; char sa_data[14]; @@ -400,6 +405,8 @@ #define PF_BAN AF_BAN #define PF_ATM AF_ATM #define PF_INET6 AF_INET6 +#define PF_IRDA AF_IRDA +#define PF_BTH AF_BTH #define PF_MAX AF_MAX #define SOL_SOCKET 0xffff #if ! (defined (__INSIDE_CYGWIN__) || defined (__INSIDE_MSYS__)) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |