jwabthsdpdef.pas 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. {******************************************************************************}
  2. { }
  3. { BlueTooth API interface Unit for Object Pascal }
  4. { }
  5. { Portions created by Microsoft are Copyright (C) 1995-2001 Microsoft }
  6. { Corporation. All Rights Reserved. }
  7. { }
  8. { Portions created by Marcel van Brakel are Copyright (C) 1999-2001 }
  9. { Marcel van Brakel. All Rights Reserved. }
  10. { }
  11. { Contributors: John Penman }
  12. { }
  13. { Obtained through: Joint Endeavour of Delphi Innovators (Project JEDI) }
  14. { }
  15. { You may retrieve the latest version of this file at the Project JEDI }
  16. { APILIB home page, located at http://jedi-apilib.sourceforge.net }
  17. { }
  18. { The contents of this file are used with permission, subject to the Mozilla }
  19. { Public License Version 1.1 (the "License"); you may not use this file except }
  20. { in compliance with the License. You may obtain a copy of the License at }
  21. { http://www.mozilla.org/MPL/MPL-1.1.html }
  22. { }
  23. { Software distributed under the License is distributed on an "AS IS" basis, }
  24. { WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for }
  25. { the specific language governing rights and limitations under the License. }
  26. { }
  27. { Alternatively, the contents of this file may be used under the terms of the }
  28. { GNU Lesser General Public License (the "LGPL License"), in which case the }
  29. { provisions of the LGPL License are applicable instead of those above. }
  30. { If you wish to allow use of your version of this file only under the terms }
  31. { of the LGPL License and not to allow others to use your version of this file }
  32. { under the MPL, indicate your decision by deleting the provisions above and }
  33. { replace them with the notice and other provisions required by the LGPL }
  34. { License. If you do not delete the provisions above, a recipient may use }
  35. { your version of this file under either the MPL or the LGPL License. }
  36. { }
  37. { For more information about the LGPL: http://www.gnu.org/copyleft/lesser.html }
  38. { }
  39. {******************************************************************************}
  40. unit JWaBthSdpDef;
  41. {$WEAKPACKAGEUNIT}
  42. {$HPPEMIT ''}
  43. {$HPPEMIT '#include "bthsdpdef.h"'}
  44. {$HPPEMIT ''}
  45. {$I jediapilib.inc}
  46. interface
  47. uses
  48. JwaWinType;
  49. type
  50. SDP_LARGE_INTEGER_16 = record
  51. LowPart: Int64;
  52. HighPart: Int64;
  53. end;
  54. {$EXTERNALSYM SDP_LARGE_INTEGER_16}
  55. PSDP_LARGE_INTEGER_16 = ^SDP_LARGE_INTEGER_16;
  56. {$EXTERNALSYM PSDP_LARGE_INTEGER_16}
  57. LPSDP_LARGE_INTEGER_16 = PSDP_LARGE_INTEGER_16;
  58. {$EXTERNALSYM LPSDP_LARGE_INTEGER_16}
  59. TSdpLargeInteger = SDP_LARGE_INTEGER_16;
  60. PSdpLargeInteger = PSDP_LARGE_INTEGER_16;
  61. SDP_ULARGE_INTEGER_16 = record
  62. LowPart: Int64;
  63. HighPart: Int64;
  64. end;
  65. {$EXTERNALSYM SDP_ULARGE_INTEGER_16}
  66. PSDP_ULARGE_INTEGER_16 = ^SDP_ULARGE_INTEGER_16;
  67. {$EXTERNALSYM PSDP_ULARGE_INTEGER_16}
  68. LPSDP_ULARGE_INTEGER_16 = PSDP_ULARGE_INTEGER_16;
  69. {$EXTERNALSYM LPSDP_ULARGE_INTEGER_16}
  70. TSdpULargeInteger16 = SDP_ULARGE_INTEGER_16;
  71. PSdpULargeInteger16 = PSDP_ULARGE_INTEGER_16;
  72. NodeContainerType = (NodeContainerTypeSequence, NodeContainerTypeAlternative);
  73. TNodeContainerType = NodeContainerType;
  74. SDP_ERROR = Word;
  75. {$EXTERNALSYM SDP_ERROR}
  76. PSDP_ERROR = ^SDP_ERROR;
  77. {$EXTERNALSYM PSDP_ERROR}
  78. TSdpError = SDP_ERROR;
  79. PSdpError = PSDP_ERROR;
  80. type
  81. SDP_TYPE = DWORD;
  82. {$EXTERNALSYM SDP_TYPE}
  83. TSdpType = SDP_TYPE;
  84. const
  85. SDP_TYPE_NIL = $00;
  86. {$EXTERNALSYM SDP_TYPE_NIL}
  87. SDP_TYPE_UINT = $01;
  88. {$EXTERNALSYM SDP_TYPE_UINT}
  89. SDP_TYPE_INT = $02;
  90. {$EXTERNALSYM SDP_TYPE_INT}
  91. SDP_TYPE_UUID = $03;
  92. {$EXTERNALSYM SDP_TYPE_UUID}
  93. SDP_TYPE_STRING = $04;
  94. {$EXTERNALSYM SDP_TYPE_STRING}
  95. SDP_TYPE_BOOLEAN = $05;
  96. {$EXTERNALSYM SDP_TYPE_BOOLEAN}
  97. SDP_TYPE_SEQUENCE = $06;
  98. {$EXTERNALSYM SDP_TYPE_SEQUENCE}
  99. SDP_TYPE_ALTERNATIVE = $07;
  100. {$EXTERNALSYM SDP_TYPE_ALTERNATIVE}
  101. SDP_TYPE_URL = $08;
  102. {$EXTERNALSYM SDP_TYPE_URL}
  103. // 9 - 31 are reserved
  104. SDP_TYPE_CONTAINER = $20;
  105. {$EXTERNALSYM SDP_TYPE_CONTAINER}
  106. // allow for a little easier type checking / sizing for integers and UUIDs
  107. // ((SDP_ST_XXX & 0xF0) >> 4) == SDP_TYPE_XXX
  108. // size of the data (in bytes) is encoded as ((SDP_ST_XXX & 0xF0) >> 8)
  109. type
  110. SDP_SPECIFICTYPE = DWORD;
  111. {$EXTERNALSYM SDP_SPECIFICTYPE}
  112. TSdpSpecificType = SDP_SPECIFICTYPE;
  113. const
  114. SDP_ST_NONE = $0000;
  115. {$EXTERNALSYM SDP_ST_NONE}
  116. SDP_ST_UINT8 = $0010;
  117. {$EXTERNALSYM SDP_ST_UINT8}
  118. SDP_ST_UINT16 = $0110;
  119. {$EXTERNALSYM SDP_ST_UINT16}
  120. SDP_ST_UINT32 = $0210;
  121. {$EXTERNALSYM SDP_ST_UINT32}
  122. SDP_ST_UINT64 = $0310;
  123. {$EXTERNALSYM SDP_ST_UINT64}
  124. SDP_ST_UINT128 = $0410;
  125. {$EXTERNALSYM SDP_ST_UINT128}
  126. SDP_ST_INT8 = $0020;
  127. {$EXTERNALSYM SDP_ST_INT8}
  128. SDP_ST_INT16 = $0120;
  129. {$EXTERNALSYM SDP_ST_INT16}
  130. SDP_ST_INT32 = $0220;
  131. {$EXTERNALSYM SDP_ST_INT32}
  132. SDP_ST_INT64 = $0320;
  133. {$EXTERNALSYM SDP_ST_INT64}
  134. SDP_ST_INT128 = $0420;
  135. {$EXTERNALSYM SDP_ST_INT128}
  136. SDP_ST_UUID16 = $0130;
  137. {$EXTERNALSYM SDP_ST_UUID16}
  138. SDP_ST_UUID32 = $0220;
  139. {$EXTERNALSYM SDP_ST_UUID32}
  140. SDP_ST_UUID128 = $0430;
  141. {$EXTERNALSYM SDP_ST_UUID128}
  142. type
  143. _SdpAttributeRange = record
  144. minAttribute: Word;
  145. maxAttribute: Word;
  146. end;
  147. {$EXTERNALSYM _SdpAttributeRange}
  148. SdpAttributeRange = _SdpAttributeRange;
  149. {$EXTERNALSYM SdpAttributeRange}
  150. TSdpAttributeRange = SdpAttributeRange;
  151. SdpQueryUuidUnion = record
  152. case Integer of
  153. 0: (uuid128: TGUID);
  154. 1: (uuid32: ULONG);
  155. 2: (uuid16: Word);
  156. end;
  157. TSdpQueryUuidUnion = SdpQueryUuidUnion;
  158. _SdpQueryUuid = record
  159. u: SdpQueryUuidUnion;
  160. uuidType: Word;
  161. end;
  162. {$EXTERNALSYM _SdpQueryUuid}
  163. SdpQueryUuid = _SdpQueryUuid;
  164. {$EXTERNALSYM SdpQueryUuid}
  165. TSdpQueryUuid = SdpQueryUuid;
  166. implementation
  167. end.