|
1 /* |
|
2 * Copyright (c) 2002-2006 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Resource headers for Bluetooth Engine SDP record definitions. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef BTENGSDP_RH |
|
21 #define BTENGSDP_RH |
|
22 |
|
23 |
|
24 #include "btengsdp.hrh" |
|
25 |
|
26 |
|
27 // --------------------------------------------------------------------------- |
|
28 // Structure for mapping of service class UUIDs to service record resources. |
|
29 // --------------------------------------------------------------------------- |
|
30 // |
|
31 STRUCT SERVICE_RECORD_LIST |
|
32 { |
|
33 LTEXT8 service_ids[]; |
|
34 LINK service_records[]; |
|
35 } |
|
36 |
|
37 // --------------------------------------------------------------------------- |
|
38 // Service record. |
|
39 // --------------------------------------------------------------------------- |
|
40 // |
|
41 STRUCT SERVICE_RECORD |
|
42 { |
|
43 STRUCT attribute_list[]; |
|
44 } |
|
45 |
|
46 // --------------------------------------------------------------------------- |
|
47 // Service record attribute. |
|
48 // --------------------------------------------------------------------------- |
|
49 // |
|
50 STRUCT ATTRIBUTE |
|
51 { |
|
52 WORD id; |
|
53 STRUCT element; |
|
54 } |
|
55 |
|
56 // --------------------------------------------------------------------------- |
|
57 // Universal unique identifier (short form). |
|
58 // --------------------------------------------------------------------------- |
|
59 // |
|
60 STRUCT ELEMENT_UUID |
|
61 { |
|
62 BYTE type = EElemTypeUUID; |
|
63 LONG uuid; |
|
64 } |
|
65 |
|
66 // --------------------------------------------------------------------------- |
|
67 // Universal unique identifier (long form). |
|
68 // --------------------------------------------------------------------------- |
|
69 // |
|
70 STRUCT ELEMENT_UUID_128 |
|
71 { |
|
72 BYTE type = EElemTypeUUID128; |
|
73 LEN BYTE BYTE uuid_128[]; |
|
74 } |
|
75 |
|
76 // --------------------------------------------------------------------------- |
|
77 // Numeric data element type (8-bit). |
|
78 // --------------------------------------------------------------------------- |
|
79 // |
|
80 STRUCT ELEMENT_BYTE |
|
81 { |
|
82 BYTE type = EElemTypeByte; |
|
83 BYTE value = 1; |
|
84 } |
|
85 |
|
86 // --------------------------------------------------------------------------- |
|
87 // Numeric data element type (16-bit). |
|
88 // --------------------------------------------------------------------------- |
|
89 // |
|
90 STRUCT ELEMENT_WORD |
|
91 { |
|
92 BYTE type = EElemTypeWord; |
|
93 WORD value = 0; |
|
94 } |
|
95 |
|
96 // --------------------------------------------------------------------------- |
|
97 // Numeric data element type (32-bit). |
|
98 // --------------------------------------------------------------------------- |
|
99 // |
|
100 STRUCT ELEMENT_LONG |
|
101 { |
|
102 BYTE type = EElemTypeLong; |
|
103 LONG value = 0; |
|
104 } |
|
105 |
|
106 // --------------------------------------------------------------------------- |
|
107 // Numeric data element type (64-bit). |
|
108 // --------------------------------------------------------------------------- |
|
109 // |
|
110 STRUCT ELEMENT_LONG_64 |
|
111 { |
|
112 BYTE type = EElemTypeLong64; |
|
113 LEN BYTE BYTE long_64[]; |
|
114 } |
|
115 |
|
116 // --------------------------------------------------------------------------- |
|
117 // String data element type. |
|
118 // --------------------------------------------------------------------------- |
|
119 // |
|
120 STRUCT ELEMENT_TEXT |
|
121 { |
|
122 BYTE type = EElemTypeText; |
|
123 LTEXT8 text( TEXT_LEN_MAX ); |
|
124 } |
|
125 |
|
126 // --------------------------------------------------------------------------- |
|
127 // Data element sequence data element type. |
|
128 // --------------------------------------------------------------------------- |
|
129 // |
|
130 STRUCT ELEMENT_DES |
|
131 { |
|
132 BYTE type = EElemTypeList; |
|
133 STRUCT elements[]; |
|
134 } |
|
135 |
|
136 // --------------------------------------------------------------------------- |
|
137 // Boolean data element type (8-bit). |
|
138 // --------------------------------------------------------------------------- |
|
139 // |
|
140 STRUCT ELEMENT_BOOL |
|
141 { |
|
142 BYTE type = EElemTypeBool; |
|
143 BYTE value = 0; |
|
144 } |
|
145 |
|
146 #endif // BTENGSDP_RH |