1
{******************************************************************************}
3
{ BlueTooth API interface Unit for Object Pascal }
5
{ Portions created by Microsoft are Copyright (C) 1995-2001 Microsoft }
6
{ Corporation. All Rights Reserved. }
8
{ Portions created by Marcel van Brakel are Copyright (C) 1999-2001 }
9
{ Marcel van Brakel. All Rights Reserved. }
11
{ Contributors: John Penman }
13
{ Obtained through: Joint Endeavour of Delphi Innovators (Project JEDI) }
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 }
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 }
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. }
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. }
37
{ For more information about the LGPL: http://www.gnu.org/copyleft/lesser.html }
39
{******************************************************************************}
41
// $Id: JwaBthSdpDef.pas,v 1.3 2007/09/05 11:58:49 dezipaitor Exp $
43
{$IFNDEF JWA_OMIT_SECTIONS}
47
{$ENDIF JWA_OMIT_SECTIONS}
50
{$HPPEMIT '#include "bthsdpdef.h"'}
53
{$IFNDEF JWA_OMIT_SECTIONS}
60
{$ENDIF JWA_OMIT_SECTIONS}
62
{$IFNDEF JWA_IMPLEMENTATIONSECTION}
64
SDP_LARGE_INTEGER_16 = record
68
{$EXTERNALSYM SDP_LARGE_INTEGER_16}
69
PSDP_LARGE_INTEGER_16 = ^SDP_LARGE_INTEGER_16;
70
{$EXTERNALSYM PSDP_LARGE_INTEGER_16}
71
LPSDP_LARGE_INTEGER_16 = PSDP_LARGE_INTEGER_16;
72
{$EXTERNALSYM LPSDP_LARGE_INTEGER_16}
73
TSdpLargeInteger = SDP_LARGE_INTEGER_16;
74
PSdpLargeInteger = PSDP_LARGE_INTEGER_16;
76
SDP_ULARGE_INTEGER_16 = record
80
{$EXTERNALSYM SDP_ULARGE_INTEGER_16}
81
PSDP_ULARGE_INTEGER_16 = ^SDP_ULARGE_INTEGER_16;
82
{$EXTERNALSYM PSDP_ULARGE_INTEGER_16}
83
LPSDP_ULARGE_INTEGER_16 = PSDP_ULARGE_INTEGER_16;
84
{$EXTERNALSYM LPSDP_ULARGE_INTEGER_16}
85
TSdpULargeInteger16 = SDP_ULARGE_INTEGER_16;
86
PSdpULargeInteger16 = PSDP_ULARGE_INTEGER_16;
88
NodeContainerType = (NodeContainerTypeSequence, NodeContainerTypeAlternative);
89
TNodeContainerType = NodeContainerType;
92
{$EXTERNALSYM SDP_ERROR}
93
PSDP_ERROR = ^SDP_ERROR;
94
{$EXTERNALSYM PSDP_ERROR}
95
TSdpError = SDP_ERROR;
96
PSdpError = PSDP_ERROR;
100
{$EXTERNALSYM SDP_TYPE}
105
{$EXTERNALSYM SDP_TYPE_NIL}
107
{$EXTERNALSYM SDP_TYPE_UINT}
109
{$EXTERNALSYM SDP_TYPE_INT}
111
{$EXTERNALSYM SDP_TYPE_UUID}
112
SDP_TYPE_STRING = $04;
113
{$EXTERNALSYM SDP_TYPE_STRING}
114
SDP_TYPE_BOOLEAN = $05;
115
{$EXTERNALSYM SDP_TYPE_BOOLEAN}
116
SDP_TYPE_SEQUENCE = $06;
117
{$EXTERNALSYM SDP_TYPE_SEQUENCE}
118
SDP_TYPE_ALTERNATIVE = $07;
119
{$EXTERNALSYM SDP_TYPE_ALTERNATIVE}
121
{$EXTERNALSYM SDP_TYPE_URL}
122
// 9 - 31 are reserved
123
SDP_TYPE_CONTAINER = $20;
124
{$EXTERNALSYM SDP_TYPE_CONTAINER}
126
// allow for a little easier type checking / sizing for integers and UUIDs
127
// ((SDP_ST_XXX & 0xF0) >> 4) == SDP_TYPE_XXX
128
// size of the data (in bytes) is encoded as ((SDP_ST_XXX & 0xF0) >> 8)
131
SDP_SPECIFICTYPE = DWORD;
132
{$EXTERNALSYM SDP_SPECIFICTYPE}
133
TSdpSpecificType = SDP_SPECIFICTYPE;
137
{$EXTERNALSYM SDP_ST_NONE}
139
SDP_ST_UINT8 = $0010;
140
{$EXTERNALSYM SDP_ST_UINT8}
141
SDP_ST_UINT16 = $0110;
142
{$EXTERNALSYM SDP_ST_UINT16}
143
SDP_ST_UINT32 = $0210;
144
{$EXTERNALSYM SDP_ST_UINT32}
145
SDP_ST_UINT64 = $0310;
146
{$EXTERNALSYM SDP_ST_UINT64}
147
SDP_ST_UINT128 = $0410;
148
{$EXTERNALSYM SDP_ST_UINT128}
151
{$EXTERNALSYM SDP_ST_INT8}
152
SDP_ST_INT16 = $0120;
153
{$EXTERNALSYM SDP_ST_INT16}
154
SDP_ST_INT32 = $0220;
155
{$EXTERNALSYM SDP_ST_INT32}
156
SDP_ST_INT64 = $0320;
157
{$EXTERNALSYM SDP_ST_INT64}
158
SDP_ST_INT128 = $0420;
159
{$EXTERNALSYM SDP_ST_INT128}
161
SDP_ST_UUID16 = $0130;
162
{$EXTERNALSYM SDP_ST_UUID16}
163
SDP_ST_UUID32 = $0220;
164
{$EXTERNALSYM SDP_ST_UUID32}
165
SDP_ST_UUID128 = $0430;
166
{$EXTERNALSYM SDP_ST_UUID128}
169
_SdpAttributeRange = record
173
{$EXTERNALSYM _SdpAttributeRange}
174
SdpAttributeRange = _SdpAttributeRange;
175
{$EXTERNALSYM SdpAttributeRange}
176
TSdpAttributeRange = SdpAttributeRange;
178
SdpQueryUuidUnion = record
184
TSdpQueryUuidUnion = SdpQueryUuidUnion;
186
_SdpQueryUuid = record
187
u: SdpQueryUuidUnion;
190
{$EXTERNALSYM _SdpQueryUuid}
191
SdpQueryUuid = _SdpQueryUuid;
192
{$EXTERNALSYM SdpQueryUuid}
193
TSdpQueryUuid = SdpQueryUuid;
195
{$ENDIF JWA_IMPLEMENTATIONSECTION}
199
{$IFNDEF JWA_OMIT_SECTIONS}
202
{$ENDIF JWA_OMIT_SECTIONS}
204
{$IFNDEF JWA_INTERFACESECTION}
205
//your implementation here
206
{$ENDIF JWA_INTERFACESECTION}
208
{$IFNDEF JWA_OMIT_SECTIONS}
210
{$ENDIF JWA_OMIT_SECTIONS}