Attached is a patch that adds MMC support for OSX using IOKit. This has been tested with VLC 2.0.3 under Mac OS X 10.8.0 only.
There are two parts to this code: 1) Update configure.ac and src/Makefile.am: - Add -D_DARWIN_C_SOURCE to SET_FEATURE and move it from src/Makefile.am to configure.ac. This is needed to fix compile problems when including sys/mount.h (needed for statfs-- the easy way to get from a device name to a mount point) - Add -Wl,-framework,IOKit -Wl,-framework,Cocoa -Wl,-framework,DiskArbitration -lobjc to the linker flags under darwin (OSX) 2) Support for IOKit: - Use DiskArbitration to unmount the disk so libaacs can get exclusive access. This is needed to issue MMC commands to the device. - Get exclusive access to the device and use the SCSITaskInterface to send MMC commands to the device. - Remount the disk when closing the MMC interface. - If AACS is not present call mmc_close to ensure the disk is remounted and the MMC structure is cleaned up properly. There may be other ways to handle MMC on the mac (DSAPI from makemkv for example) but this is working nicely under 10.8. I still need to test with older versions of OSX (10.7, 10.6) but I expect it will work as the APIs I am using have been available since at least 10.5. Thanks, -Nathan Hjelm
libaacs_iokit.patch
Description: Binary data
_______________________________________________ libaacs-devel mailing list [email protected] http://mailman.videolan.org/listinfo/libaacs-devel
