MCPcopy Create free account
hub / github.com/HandBrake/HandBrake / device_is_dvd

Function device_is_dvd

test/test.c:5727–5737  ·  view source on GitHub ↗

* device_is_dvd * * Returns whether or not the passed in BSD device represents a DVD, or other * optical media. ****************************************************************************/

Source from the content-addressed store, hash-verified

5725 * optical media.
5726 ****************************************************************************/
5727static int device_is_dvd(char *device)
5728{
5729 io_service_t service = get_iokit_service(device);
5730 if( service == IO_OBJECT_NULL )
5731 {
5732 return 0;
5733 }
5734 int result = is_dvd_service(service);
5735 IOObjectRelease(service);
5736 return result;
5737}
5738
5739/****************************************************************************
5740 * get_iokit_service

Callers 1

ParseOptionsFunction · 0.85

Calls 2

get_iokit_serviceFunction · 0.85
is_dvd_serviceFunction · 0.85

Tested by

no test coverage detected