2 * Copyright (c) 1998-2000 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
6 * The contents of this file constitute Original Code as defined in and
7 * are subject to the Apple Public Source License Version 1.1 (the
8 * "License"). You may not use this file except in compliance with the
9 * License. Please obtain a copy of the License at
10 * http://www.apple.com/publicsource and read it before using this file.
12 * This Original Code and all software distributed under the License are
13 * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
14 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
15 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the
17 * License for the specific language governing rights and limitations
20 * @APPLE_LICENSE_HEADER_END@
25 Contains: xxx put contents here xxx
27 Version: xxx put version here xxx
29 Copyright: © 1999 by Apple Computer, Inc., all rights reserved.
33 DRI: xxx put dri here xxx
35 Other Contact: xxx put other contact here xxx
37 Technology: xxx put technology here xxx
43 Change History (most recent first):
45 <USB1> 3/5/99 BWS first checked in
53 #define kShouldClearMem true
55 /*------------------------------------------------------------------------------*/
57 /* HID Library definitions */
59 /*------------------------------------------------------------------------------*/
61 /* And now our extern procedures that are not external entry points in our shared library */
63 struct HIDReportDescriptor
66 ByteCount descriptorLength
;
68 SInt32
* collectionStack
;
69 SInt32 collectionNesting
;
70 HIDGlobalItems
* globalsStack
;
71 SInt32 globalsNesting
;
73 SInt32 firstUsageItem
;
74 SInt32 firstStringItem
;
75 SInt32 firstDesigItem
;
78 HIDGlobalItems globals
;
81 SInt32 rangeUsagePage
;
84 Boolean haveStringMin
;
85 Boolean haveStringMax
;
93 typedef struct HIDReportDescriptor HIDReportDescriptor
;
95 /* And now our extern procedures that are not external entry points in our shared library */
98 HIDCountDescriptorItems (HIDReportDescriptor
* reportDescriptor
,
99 HIDPreparsedDataPtr preparsedData
);
102 HIDNextItem (HIDReportDescriptor
* reportDescriptor
);
105 HIDParseDescriptor (HIDReportDescriptor
* reportDescriptor
,
106 HIDPreparsedDataPtr preparsedData
);
109 HIDProcessCollection (HIDReportDescriptor
* reportDescriptor
,
110 HIDPreparsedDataPtr preparsedData
);
113 HIDProcessEndCollection (HIDReportDescriptor
* reportDescriptor
,
114 HIDPreparsedDataPtr preparsedData
);
117 HIDProcessGlobalItem (HIDReportDescriptor
* reportDescriptor
,
118 HIDPreparsedDataPtr preparsedData
);
121 HIDProcessLocalItem (HIDReportDescriptor
* reportDescriptor
,
122 HIDPreparsedDataPtr preparsedData
);
125 HIDProcessMainItem (HIDReportDescriptor
* reportDescriptor
,
126 HIDPreparsedDataPtr preparsedData
);
129 HIDProcessReportItem (HIDReportDescriptor
* reportDescriptor
,
130 HIDPreparsedDataPtr preparsedData
);