Mac OS 9
DeviceControl.h
Go to the documentation of this file.
1 
19 #ifndef __DEVICECONTROL__
20 #define __DEVICECONTROL__
21 
22 #ifndef __MACTYPES__
23 #include <MacTypes.h>
24 #endif
25 
26 #ifndef __COMPONENTS__
27 #include <Components.h>
28 #endif
29 
30 #if PRAGMA_ONCE
31 #pragma once
32 #endif
33 
34 #ifdef __cplusplus
35 extern "C"
36 {
37 #endif
38 
39 #if PRAGMA_IMPORT
40 #pragma import on
41 #endif
42 
43 #if PRAGMA_STRUCT_ALIGN
44 #pragma options align = mac68k
45 #elif PRAGMA_STRUCT_PACKPUSH
46 #pragma pack(push, 2)
47 #elif PRAGMA_STRUCT_PACK
48 #pragma pack(2)
49 #endif
50 
51  typedef CALLBACK_API_C(UInt32, DCResponseHandler)(UInt32 fwCommandObjectID,
52  Ptr responseBuffer,
53  UInt32 responseLength);
55  {
56  Ptr commandBufferPtr;
57  UInt32 commandLength;
58  Ptr responseBufferPtr;
59  UInt32 responseBufferSize;
60  DCResponseHandler *responseHandler;
61  };
71  ComponentResult
73  DVCTransactionParams *params);
74 
75  /* selectors for component calls */
76  enum
77  {
78  kDeviceControlDoAVCTransactionSelect = 0x0001
79  };
80 
81 #if PRAGMA_STRUCT_ALIGN
82 #pragma options align = reset
83 #elif PRAGMA_STRUCT_PACKPUSH
84 #pragma pack(pop)
85 #elif PRAGMA_STRUCT_PACK
86 #pragma pack()
87 #endif
88 
89 #ifdef PRAGMA_IMPORT_OFF
90 #pragma import off
91 #elif PRAGMA_IMPORT
92 #pragma import reset
93 #endif
94 
95 #ifdef __cplusplus
96 }
97 #endif
98 
99 #endif /* __DEVICECONTROL__ */
Component Manager Interfaces.
ComponentResult DeviceControlDoAVCTransaction(ComponentInstance instance, DVCTransactionParams *params)
Basic Macintosh data types.
Definition: Components.h:220
Definition: DeviceControl.h:55