diff options
author | Danny Smith <dannysmith@users.sourceforge.net> | 2002-05-03 03:01:51 +0000 |
---|---|---|
committer | Danny Smith <dannysmith@users.sourceforge.net> | 2002-05-03 03:01:51 +0000 |
commit | c218361efafc7a0e16df462a88d8a971954da580 (patch) | |
tree | aec7fa38a0086980ff56af9145b0db43c5b1952a /winsup/w32api/include/winsock2.h | |
parent | 335c87f94dc73e6d6dbe5d29d59a1c221373bcbc (diff) | |
download | cygnal-c218361efafc7a0e16df462a88d8a971954da580.tar.gz cygnal-c218361efafc7a0e16df462a88d8a971954da580.tar.bz2 cygnal-c218361efafc7a0e16df462a88d8a971954da580.zip |
* include/winsock2.h (int32): Remove typedef.
(SEVICETYPE): Add typedef.
(struct _flowspec):Revise struct definition, Comment
on types used for members.
Diffstat (limited to 'winsup/w32api/include/winsock2.h')
-rw-r--r-- | winsup/w32api/include/winsock2.h | 29 |
1 files changed, 19 insertions, 10 deletions
diff --git a/winsup/w32api/include/winsock2.h b/winsup/w32api/include/winsock2.h index 77c90bd5b..cd1579aed 100644 --- a/winsup/w32api/include/winsock2.h +++ b/winsup/w32api/include/winsock2.h @@ -659,19 +659,28 @@ typedef enum GuaranteedService } GUARANTEE; -typedef long int32; +/* TODO: FLOWSPEC and related definitions belong in qos.h */ +/* + Windows Sockets 2 Application Programming Interface, + revision 2.2.2 (1997) uses the type uint32 for SERVICETYPE + and the elements of _flowspec, but the type uint32 is not defined + or used anywhere else in the w32api. For now, just use + unsigned int, which is 32 bits on _WIN32 and _WIN64. +*/ + +typedef unsigned int SERVICETYPE; typedef struct _flowspec { - int32 TokenRate; - int32 TokenBucketSize; - int32 PeakBandwidth; - int32 Latency; - int32 DelayVariation; - GUARANTEE LevelOfGuarantee; - int32 CostOfCall; - int32 NetworkAvailability; -} FLOWSPEC, *LPFLOWSPEC; + unsigned int TokenRate; + unsigned int TokenBucketSize; + unsigned int PeakBandwidth; + unsigned int Latency; + unsigned int DelayVariation; + SERVICETYPE ServiceType; + unsigned int MaxSduSize; + unsigned int MinimumPolicedSize; + } FLOWSPEC, *PFLOWSPEC, *LPFLOWSPEC; typedef struct _QualityOfService { |