jwabthsdpdef.pas 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  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. // $Id: JwaBthSdpDef.pas,v 1.1 2005/09/05 06:29:33 marquardt Exp $
  41. unit JwaBthSdpDef;
  42. {$WEAKPACKAGEUNIT}
  43. {$HPPEMIT ''}
  44. {$HPPEMIT '#include "bthsdpdef.h"'}
  45. {$HPPEMIT ''}
  46. {$I jediapilib.inc}
  47. interface
  48. uses
  49. JwaWindows;
  50. type
  51. SDP_LARGE_INTEGER_16 = record
  52. LowPart: Int64;
  53. HighPart: Int64;
  54. end;
  55. {$EXTERNALSYM SDP_LARGE_INTEGER_16}
  56. PSDP_LARGE_INTEGER_16 = ^SDP_LARGE_INTEGER_16;
  57. {$EXTERNALSYM PSDP_LARGE_INTEGER_16}
  58. LPSDP_LARGE_INTEGER_16 = PSDP_LARGE_INTEGER_16;
  59. {$EXTERNALSYM LPSDP_LARGE_INTEGER_16}
  60. TSdpLargeInteger = SDP_LARGE_INTEGER_16;
  61. PSdpLargeInteger = PSDP_LARGE_INTEGER_16;
  62. SDP_ULARGE_INTEGER_16 = record
  63. LowPart: Int64;
  64. HighPart: Int64;
  65. end;
  66. {$EXTERNALSYM SDP_ULARGE_INTEGER_16}
  67. PSDP_ULARGE_INTEGER_16 = ^SDP_ULARGE_INTEGER_16;
  68. {$EXTERNALSYM PSDP_ULARGE_INTEGER_16}
  69. LPSDP_ULARGE_INTEGER_16 = PSDP_ULARGE_INTEGER_16;
  70. {$EXTERNALSYM LPSDP_ULARGE_INTEGER_16}
  71. TSdpULargeInteger16 = SDP_ULARGE_INTEGER_16;
  72. PSdpULargeInteger16 = PSDP_ULARGE_INTEGER_16;
  73. NodeContainerType = (NodeContainerTypeSequence, NodeContainerTypeAlternative);
  74. TNodeContainerType = NodeContainerType;
  75. SDP_ERROR = Word;
  76. {$EXTERNALSYM SDP_ERROR}
  77. PSDP_ERROR = ^SDP_ERROR;
  78. {$EXTERNALSYM PSDP_ERROR}
  79. TSdpError = SDP_ERROR;
  80. PSdpError = PSDP_ERROR;
  81. type
  82. SDP_TYPE = DWORD;
  83. {$EXTERNALSYM SDP_TYPE}
  84. TSdpType = SDP_TYPE;
  85. const
  86. SDP_TYPE_NIL = $00;
  87. {$EXTERNALSYM SDP_TYPE_NIL}
  88. SDP_TYPE_UINT = $01;
  89. {$EXTERNALSYM SDP_TYPE_UINT}
  90. SDP_TYPE_INT = $02;
  91. {$EXTERNALSYM SDP_TYPE_INT}
  92. SDP_TYPE_UUID = $03;
  93. {$EXTERNALSYM SDP_TYPE_UUID}
  94. SDP_TYPE_STRING = $04;
  95. {$EXTERNALSYM SDP_TYPE_STRING}
  96. SDP_TYPE_BOOLEAN = $05;
  97. {$EXTERNALSYM SDP_TYPE_BOOLEAN}
  98. SDP_TYPE_SEQUENCE = $06;
  99. {$EXTERNALSYM SDP_TYPE_SEQUENCE}
  100. SDP_TYPE_ALTERNATIVE = $07;
  101. {$EXTERNALSYM SDP_TYPE_ALTERNATIVE}
  102. SDP_TYPE_URL = $08;
  103. {$EXTERNALSYM SDP_TYPE_URL}
  104. // 9 - 31 are reserved
  105. SDP_TYPE_CONTAINER = $20;
  106. {$EXTERNALSYM SDP_TYPE_CONTAINER}
  107. // allow for a little easier type checking / sizing for integers and UUIDs
  108. // ((SDP_ST_XXX & 0xF0) >> 4) == SDP_TYPE_XXX
  109. // size of the data (in bytes) is encoded as ((SDP_ST_XXX & 0xF0) >> 8)
  110. type
  111. SDP_SPECIFICTYPE = DWORD;
  112. {$EXTERNALSYM SDP_SPECIFICTYPE}
  113. TSdpSpecificType = SDP_SPECIFICTYPE;
  114. const
  115. SDP_ST_NONE = $0000;
  116. {$EXTERNALSYM SDP_ST_NONE}
  117. SDP_ST_UINT8 = $0010;
  118. {$EXTERNALSYM SDP_ST_UINT8}
  119. SDP_ST_UINT16 = $0110;
  120. {$EXTERNALSYM SDP_ST_UINT16}
  121. SDP_ST_UINT32 = $0210;
  122. {$EXTERNALSYM SDP_ST_UINT32}
  123. SDP_ST_UINT64 = $0310;
  124. {$EXTERNALSYM SDP_ST_UINT64}
  125. SDP_ST_UINT128 = $0410;
  126. {$EXTERNALSYM SDP_ST_UINT128}
  127. SDP_ST_INT8 = $0020;
  128. {$EXTERNALSYM SDP_ST_INT8}
  129. SDP_ST_INT16 = $0120;
  130. {$EXTERNALSYM SDP_ST_INT16}
  131. SDP_ST_INT32 = $0220;
  132. {$EXTERNALSYM SDP_ST_INT32}
  133. SDP_ST_INT64 = $0320;
  134. {$EXTERNALSYM SDP_ST_INT64}
  135. SDP_ST_INT128 = $0420;
  136. {$EXTERNALSYM SDP_ST_INT128}
  137. SDP_ST_UUID16 = $0130;
  138. {$EXTERNALSYM SDP_ST_UUID16}
  139. SDP_ST_UUID32 = $0220;
  140. {$EXTERNALSYM SDP_ST_UUID32}
  141. SDP_ST_UUID128 = $0430;
  142. {$EXTERNALSYM SDP_ST_UUID128}
  143. type
  144. _SdpAttributeRange = record
  145. minAttribute: Word;
  146. maxAttribute: Word;
  147. end;
  148. {$EXTERNALSYM _SdpAttributeRange}
  149. SdpAttributeRange = _SdpAttributeRange;
  150. {$EXTERNALSYM SdpAttributeRange}
  151. TSdpAttributeRange = SdpAttributeRange;
  152. SdpQueryUuidUnion = record
  153. case Integer of
  154. 0: (uuid128: TGUID);
  155. 1: (uuid32: ULONG);
  156. 2: (uuid16: Word);
  157. end;
  158. TSdpQueryUuidUnion = SdpQueryUuidUnion;
  159. _SdpQueryUuid = record
  160. u: SdpQueryUuidUnion;
  161. uuidType: Word;
  162. end;
  163. {$EXTERNALSYM _SdpQueryUuid}
  164. SdpQueryUuid = _SdpQueryUuid;
  165. {$EXTERNALSYM SdpQueryUuid}
  166. TSdpQueryUuid = SdpQueryUuid;
  167. implementation
  168. end.