1/*
2 * Copyright (c) 2010 Apple Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
6 * This file contains Original Code and/or Modifications of Original Code
7 * as defined in and that are subject to the Apple Public Source License
8 * Version 2.0 (the 'License'). You may not use this file except in
9 * compliance with the License. Please obtain a copy of the License at
10 * http://www.opensource.apple.com/apsl/ and read it before using this
11 * file.
12 *
13 * The Original Code and all software distributed under the License are
14 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
15 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
16 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
18 * Please see the License for the specific language governing rights and
19 * limitations under the License.
20 *
21 * @APPLE_LICENSE_HEADER_END@
22 */
23/*
24	File:		DeviceControl.i
25
26	Contains:	Component API for doing AVC transactions.
27
28	Version:	xxx put version here xxx
29
30	Copyright:	� 1999 by Apple Computer, Inc., all rights reserved.
31
32	File Ownership:
33
34		DRI:				Jed (George) Wilson
35
36		Other Contact:		Sean Williams
37
38		Technology:			xxx put technology here xxx
39
40	Writers:
41
42		(KW)	Kevin Williams
43		(GDW)	George D. Wilson Jr.
44
45	Change History (most recent first):
46
47		 <3>	 6/16/99	GDW		Changed AVC struct name to DVC for people that include
48									"DVFamily.h".
49		 <2>	 6/15/99	KW		Change name of Handler
50		 <1>	 6/15/99	GDW		first checked in
51		 <2>	 6/15/99	GDW		Created
52*/
53
54
55%if FRAMEWORKS
56	#include <CoreServices.i>
57%else
58    #include <MacTypes.i>
59    #include <Components.i>
60%endif
61
62
63typedef extern UInt32	(*DCResponseHandler) (
64	UInt32						fwCommandObjectID,
65	Ptr							responseBuffer,
66	UInt32						responseLength);
67
68
69struct DVCTransactionParams {
70	Ptr						commandBufferPtr;
71	UInt32					commandLength;
72	Ptr						responseBufferPtr;
73	UInt32					responseBufferSize;
74	DCResponseHandler *responseHandler;
75};
76
77%TellEmitter "components" "prefix DeviceControl";
78
79pascal <exportset=IDHLib_10, exportset=fw_DVComponentGlue_X>
80ComponentResult DeviceControlDoAVCTransaction(ComponentInstance instance, DVCTransactionParams* params) = ComponentCall(1);
81
82
83%TellEmitter "components" "emitProcInfos";
84%TellEmitter "c" "emitComponentSelectors";
85