[plain text]
#include "AppleUSBAudioPlugin.h"
#include <IOKit/IOLib.h>
#define super IOService
OSDefineMetaClassAndStructors (AppleUSBAudioPlugin, IOService)
OSMetaClassDefineReservedUnused(AppleUSBAudioPlugin, 0);
OSMetaClassDefineReservedUnused(AppleUSBAudioPlugin, 1);
OSMetaClassDefineReservedUnused(AppleUSBAudioPlugin, 2);
OSMetaClassDefineReservedUnused(AppleUSBAudioPlugin, 3);
OSMetaClassDefineReservedUnused(AppleUSBAudioPlugin, 4);
OSMetaClassDefineReservedUnused(AppleUSBAudioPlugin, 5);
OSMetaClassDefineReservedUnused(AppleUSBAudioPlugin, 6);
OSMetaClassDefineReservedUnused(AppleUSBAudioPlugin, 7);
OSMetaClassDefineReservedUnused(AppleUSBAudioPlugin, 8);
OSMetaClassDefineReservedUnused(AppleUSBAudioPlugin, 9);
OSMetaClassDefineReservedUnused(AppleUSBAudioPlugin, 10);
OSMetaClassDefineReservedUnused(AppleUSBAudioPlugin, 11);
OSMetaClassDefineReservedUnused(AppleUSBAudioPlugin, 12);
OSMetaClassDefineReservedUnused(AppleUSBAudioPlugin, 13);
OSMetaClassDefineReservedUnused(AppleUSBAudioPlugin, 14);
OSMetaClassDefineReservedUnused(AppleUSBAudioPlugin, 15);
bool AppleUSBAudioPlugin::start (IOService * provider) {
if (!super::start (provider)) {
return FALSE;
}
mOurProvider = (AppleUSBAudioEngine *)provider;
mOurProvider->registerPlugin (this);
return TRUE;
}
void AppleUSBAudioPlugin::stop (IOService * provider) {
publishResource ("AppleUSBAudioPlugin", NULL);
super::stop (provider);
}
IOReturn AppleUSBAudioPlugin::pluginDeviceRequest (IOUSBDevRequest * request, IOUSBCompletion * completion) {
IOReturn result;
result = kIOReturnError;
if (mOurProvider) {
result = mOurProvider->pluginDeviceRequest (request, completion);
}
return result;
}
IOReturn AppleUSBAudioPlugin::pluginInit (IOService * provider, UInt16 vendorID, UInt16 modelID) {
return kIOReturnSuccess;
}
IOReturn AppleUSBAudioPlugin::pluginStart () {
return kIOReturnSuccess;
}
IOReturn AppleUSBAudioPlugin::pluginSetFormat (const IOAudioStreamFormat * const newFormat, const IOAudioSampleRate * const newSampleRate) {
return kIOReturnSuccess;
}
IOReturn AppleUSBAudioPlugin::pluginReset () {
return kIOReturnSuccess;
}
IOReturn AppleUSBAudioPlugin::pluginProcess (float * mixBuf, UInt32 numSampleFrames, UInt32 numChannels) {
return kIOReturnSuccess;
}
IOReturn AppleUSBAudioPlugin::pluginStop () {
return kIOReturnSuccess;
}
Generated by GNU enscript 1.6.4.