1/* 2 * Copyright (c) 2009 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.k.h 25 26 Contains: Component API for doing AVC transactions. 27 28 Version: xxx put version here xxx 29 30 DRI: Jed (George) Wilson 31 32 Copyright: � 1999-2001 by Apple Computer, Inc., all rights reserved. 33 34 Warning: *** APPLE INTERNAL USE ONLY *** 35 This file may contain unreleased API's 36 37 BuildInfo: Built by: wgulland 38 On: Tue Mar 12 16:49:01 2002 39 With Interfacer: 3.0d35 (Mac OS X for PowerPC) 40 From: DeviceControl.i 41 Revision: 3 42 Dated: 6/16/99 43 Last change by: GDW 44 Last comment: Changed AVC struct name to DVC for people that include 45 46 Bugs: Report bugs to Radar component "System Interfaces", "Latest" 47 List the version information (from above) in the Problem Description. 48 49*/ 50#ifndef __DEVICECONTROL_K__ 51#define __DEVICECONTROL_K__ 52 53#include <DVComponentGlue/DeviceControl.h> 54/* 55 Example usage: 56 57 #define DEVICECONTROL_BASENAME() Fred 58 #define DEVICECONTROL_GLOBALS() FredGlobalsHandle 59 #include <DeviceControl.k.h> 60 61 To specify that your component implementation does not use globals, do not #define DEVICECONTROL_GLOBALS 62*/ 63#ifdef DEVICECONTROL_BASENAME 64 #ifndef DEVICECONTROL_GLOBALS 65 #define DEVICECONTROL_GLOBALS() 66 #define ADD_DEVICECONTROL_COMMA 67 #else 68 #define ADD_DEVICECONTROL_COMMA , 69 #endif 70 #define DEVICECONTROL_GLUE(a,b) a##b 71 #define DEVICECONTROL_STRCAT(a,b) DEVICECONTROL_GLUE(a,b) 72 #define ADD_DEVICECONTROL_BASENAME(name) DEVICECONTROL_STRCAT(DEVICECONTROL_BASENAME(),name) 73 74 EXTERN_API( ComponentResult ) ADD_DEVICECONTROL_BASENAME(DoAVCTransaction) (DEVICECONTROL_GLOBALS() ADD_DEVICECONTROL_COMMA DVCTransactionParams * params); 75 76 77 /* MixedMode ProcInfo constants for component calls */ 78 enum { 79 uppDeviceControlDoAVCTransactionProcInfo = 0x000003F0 80 }; 81 82#endif /* DEVICECONTROL_BASENAME */ 83 84 85#endif /* __DEVICECONTROL_K__ */ 86 87