Something went wrong. Try again.
Cider Isn't Darwin Emulation, Really
Something went wrong. Try again.
837 B · 43 lines
C
at android
1234567891011121314151617181920212223242526272829303132333435363738394041424344#ifndef COMPONENTS_H#define COMPONENTS_H#include <MacTypes.h>
#ifdef __cplusplusclass CarbonComponent;#elsestruct __CarbonComponent;typedef CarbonComponent struct __CarbonComponent;#endifstruct ComponentDescription;
typedef CarbonComponent* ComponentInstance;typedef void* Component;
#ifdef __cplusplusextern "C" {#endif
Component FindNextComponent(Component prev, ComponentDescription* desc);long CountComponents(ComponentDescription* desc);
OSErr OpenAComponent(Component comp, ComponentInstance* out);ComponentInstance OpenComponent(Component comp);OSErr CloseComponent(ComponentInstance inst);
#ifdef __cplusplus}#endif
struct ComponentDescription{ OSType componentType, componentSubType, componentManufacturer; UInt32 componentFlags, componentFlagsMask;};
enum{ kAppleManufacturer = 'appl'};
#endif