]> git.saurik.com Git - apple/xnu.git/blobdiff - iokit/IOKit/IOMapper.h
xnu-7195.50.7.100.1.tar.gz
[apple/xnu.git] / iokit / IOKit / IOMapper.h
index df5214478d32011ccccd4f36ebf0bea7d380c9f0..34ca4a40853f0c559fc283ff1d3b2e7ab3c2b256 100644 (file)
@@ -47,6 +47,7 @@ __END_DECLS
 #include <IOKit/IOService.h>
 #include <IOKit/IOMemoryDescriptor.h>
 #include <IOKit/IODMACommand.h>
+#include <libkern/c++/OSPtr.h>
 
 class OSData;
 
@@ -99,8 +100,8 @@ public:
                }
        }
 
-       static IOMapper * copyMapperForDevice(IOService * device);
-       static IOMapper * copyMapperForDeviceWithIndex(IOService * device, unsigned int index);
+       static OSPtr<IOMapper>  copyMapperForDevice(IOService * device);
+       static OSPtr<IOMapper>  copyMapperForDeviceWithIndex(IOService * device, unsigned int index);
 
 // { subclasses