Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

81 lines
1.7 KiB

  1. /*
  2. File: CFUUID.h
  3. Contains: CoreFoundation UUIDs
  4. Version: QuickTime 7.3
  5. Copyright: (c) 2007 (c) 1999-2001 by Apple Computer, Inc., all rights reserved
  6. Bugs?: For bug reports, consult the following page on
  7. the World Wide Web:
  8. http://developer.apple.com/bugreporter/
  9. */
  10. #ifndef __CFUUID__
  11. #define __CFUUID__
  12. #if PRAGMA_ONCE
  13. #pragma once
  14. #endif
  15. #if PRAGMA_IMPORT
  16. #pragma import on
  17. #endif
  18. #if PRAGMA_STRUCT_ALIGN
  19. #pragma options align=mac68k
  20. #elif PRAGMA_STRUCT_PACKPUSH
  21. #pragma pack(push, 2)
  22. #elif PRAGMA_STRUCT_PACK
  23. #pragma pack(2)
  24. #endif
  25. #include <CFBase.h>
  26. typedef struct __CFUUID* CFUUIDRef;
  27. struct CFUUIDBytes {
  28. UInt8 byte0;
  29. UInt8 byte1;
  30. UInt8 byte2;
  31. UInt8 byte3;
  32. UInt8 byte4;
  33. UInt8 byte5;
  34. UInt8 byte6;
  35. UInt8 byte7;
  36. UInt8 byte8;
  37. UInt8 byte9;
  38. UInt8 byte10;
  39. UInt8 byte11;
  40. UInt8 byte12;
  41. UInt8 byte13;
  42. UInt8 byte14;
  43. UInt8 byte15;
  44. };
  45. typedef struct CFUUIDBytes CFUUIDBytes;
  46. /* The CFUUIDBytes struct is a 128-bit struct that contains the
  47. raw UUID. A CFUUIDRef can provide such a struct from the
  48. CFUUIDGetUUIDBytes() function. This struct is suitable for
  49. passing to APIs that expect a raw UUID.
  50. */
  51. #if PRAGMA_STRUCT_ALIGN
  52. #pragma options align=reset
  53. #elif PRAGMA_STRUCT_PACKPUSH
  54. #pragma pack(pop)
  55. #elif PRAGMA_STRUCT_PACK
  56. #pragma pack()
  57. #endif
  58. #ifdef PRAGMA_IMPORT_OFF
  59. #pragma import off
  60. #elif PRAGMA_IMPORT
  61. #pragma import reset
  62. #endif
  63. #endif /* __CFUUID__ */