Commit Graph

6 Commits

Author SHA1 Message Date
Dmitri Gribenko
a609277f55 IOKit depends on Dispatch 2016-02-18 09:43:30 -08:00
Dmitri Gribenko
f775457699 Add missing dependencies for the IOKit overlay 2016-02-18 02:22:22 -08:00
Dmitri Gribenko
473ffe55f4 IOKit overlay: fix coding style 2016-02-17 09:13:11 -08:00
Matt Rajca
0b678793dc Switched to computed variables and explicitly marked internal access 2016-01-27 11:13:52 -06:00
Matt Rajca
ea3894d524 Cleaned up IOKit overlay
- Removed unnecessary #if guard
- Used IOReturn instead of Int32 return type
- Avoided private access control for overlays
- Added a test to ensure the type of the constants matches the return type of a IOKit function
2016-01-26 20:10:21 -06:00
Matt Rajca
7e5c9d34ec Added an an overlay for IOKit that adds the kIOReturnError* constants
All of the constants and comments have been taken from IOKit/IOReturn.h: http://www.opensource.apple.com/source/xnu/xnu-792.13.8/iokit/IOKit/IOReturn.h

The type of the kIOReturn* constants is Int32 to match the type of kIOReturnSuccess (which does get imported to Swift since it isn't defined in terms of a macro).

Fixes: https://bugs.swift.org/browse/SR-576
2016-01-25 16:58:31 -06:00