diff options
| author | John Schoenick <[email protected]> | 2015-09-09 18:35:41 -0700 |
|---|---|---|
| committer | John Schoenick <[email protected]> | 2015-09-09 18:35:41 -0700 |
| commit | 0d8dceea4310fde5706b3ce1c70609d72a38efdf (patch) | |
| tree | c831ef32c2c801a5c5a80401736b52c7b5a528ec /mp/src/public/steam/steamtypes.h | |
| parent | Updated the SDK with the latest code from the TF and HL2 branches. (diff) | |
| download | source-sdk-2013-master.tar.xz source-sdk-2013-master.zip | |
Diffstat (limited to 'mp/src/public/steam/steamtypes.h')
| -rw-r--r-- | mp/src/public/steam/steamtypes.h | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/mp/src/public/steam/steamtypes.h b/mp/src/public/steam/steamtypes.h index c3320a10..22ce3e61 100644 --- a/mp/src/public/steam/steamtypes.h +++ b/mp/src/public/steam/steamtypes.h @@ -84,6 +84,25 @@ typedef unsigned int uintp; #endif // else _WIN32 +#ifdef __clang__ +# define CLANG_ATTR(ATTR) __attribute__((annotate( ATTR ))) +#else +# define CLANG_ATTR(ATTR) +#endif + +#define METHOD_DESC(DESC) CLANG_ATTR( "desc:" #DESC ";" ) +#define IGNOREATTR() CLANG_ATTR( "ignore" ) +#define OUT_STRUCT() CLANG_ATTR( "out_struct: ;" ) +#define OUT_ARRAY_CALL(COUNTER,FUNCTION,PARAMS) CLANG_ATTR( "out_array_call:" #COUNTER "," #FUNCTION "," #PARAMS ";" ) +#define OUT_ARRAY_COUNT(COUNTER, DESC) CLANG_ATTR( "out_array_count:" #COUNTER ";desc:" #DESC ) +#define ARRAY_COUNT(COUNTER) CLANG_ATTR( "array_count:" #COUNTER ";" ) +#define ARRAY_COUNT_D(COUNTER, DESC) CLANG_ATTR( "array_count:" #COUNTER ";desc:" #DESC ) +#define BUFFER_COUNT(COUNTER) CLANG_ATTR( "buffer_count:" #COUNTER ";" ) +#define OUT_BUFFER_COUNT(COUNTER) CLANG_ATTR( "out_buffer_count:" #COUNTER ";" ) +#define OUT_STRING_COUNT(COUNTER) CLANG_ATTR( "out_string_count:" #COUNTER ";" ) +#define DESC(DESC) CLANG_ATTR("desc:" #DESC ";") + + const int k_cubSaltSize = 8; typedef uint8 Salt_t[ k_cubSaltSize ]; @@ -98,12 +117,13 @@ typedef uint64 GID_t; const GID_t k_GIDNil = 0xffffffffffffffffull; // For convenience, we define a number of types that are just new names for GIDs -typedef GID_t JobID_t; // Each Job has a unique ID +typedef uint64 JobID_t; // Each Job has a unique ID typedef GID_t TxnID_t; // Each financial transaction has a unique ID const GID_t k_TxnIDNil = k_GIDNil; const GID_t k_TxnIDUnknown = 0; +const JobID_t k_JobIDNil = 0xffffffffffffffffull; // this is baked into client messages and interfaces as an int, // make sure we never break this. @@ -111,6 +131,8 @@ typedef uint32 PackageId_t; const PackageId_t k_uPackageIdFreeSub = 0x0; const PackageId_t k_uPackageIdInvalid = 0xFFFFFFFF; +typedef uint32 BundleId_t; +const BundleId_t k_uBundleIdInvalid = 0; // this is baked into client messages and interfaces as an int, // make sure we never break this. |