]> git.saurik.com Git - apple/xnu.git/blob - iokit/Families/IOHIDSystem/IOHIDUserClient.h
xnu-124.13.tar.gz
[apple/xnu.git] / iokit / Families / IOHIDSystem / IOHIDUserClient.h
1 /*
2 * Copyright (c) 1998-2000 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
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.
11 *
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
18 * under the License.
19 *
20 * @APPLE_LICENSE_HEADER_END@
21 */
22 /*
23 * Copyright (c) 1997 Apple Computer, Inc.
24 *
25 *
26 * HISTORY
27 *
28 */
29
30
31 #ifndef _IOKIT_IOHIDUSERCLIENT_H
32 #define _IOKIT_IOHIDUSERCLIENT_H
33
34 #include <IOKit/IOUserClient.h>
35 #include <IOKit/hidsystem/IOHIDSystem.h>
36
37
38 class IOHIDUserClient : public IOUserClient
39 {
40 OSDeclareDefaultStructors(IOHIDUserClient)
41
42 private:
43
44 IOHIDSystem * owner;
45
46 IOExternalMethod externals[ 6 ];
47
48 public:
49 // IOUserClient methods
50 virtual IOReturn clientClose( void );
51
52 virtual IOService * getService( void );
53
54 virtual IOReturn registerNotificationPort(
55 mach_port_t port, UInt32 type, UInt32 refCon );
56
57 virtual IOReturn connectClient( IOUserClient * client );
58
59 virtual IOReturn clientMemoryForType( UInt32 type,
60 UInt32 * flags, IOMemoryDescriptor ** memory );
61
62 virtual IOExternalMethod * getExternalMethodForIndex( UInt32 index );
63
64 // others
65
66 bool start( IOService * provider );
67
68 };
69
70
71 class IOHIDParamUserClient : public IOUserClient
72 {
73 OSDeclareDefaultStructors(IOHIDParamUserClient)
74
75 private:
76
77 IOHIDSystem * owner;
78
79 IOExternalMethod externals[ 5 ];
80
81 public:
82 // OSObject methods
83 virtual void free( void );
84
85 virtual void release() const;
86
87 // IOUserClient methods
88 virtual IOReturn clientClose( void );
89
90 virtual IOService * getService( void );
91
92 virtual IOExternalMethod * getExternalMethodForIndex( UInt32 index );
93
94 // others
95
96 bool start( IOService * provider );
97 virtual IOReturn setProperties( OSObject * properties );
98
99 };
100
101
102 #endif /* ! _IOKIT_IOHIDUSERCLIENT_H */