* device_is_dvd * * Returns whether or not the passed in BSD device represents a DVD, or other * optical media. ****************************************************************************/
| 5725 | * optical media. |
| 5726 | ****************************************************************************/ |
| 5727 | static 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 |
no test coverage detected