mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 22:00:39 -06:00
Forgot to svn add CDUtils
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2414 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
53
Source/Core/Common/Src/CDUtils.h
Normal file
53
Source/Core/Common/Src/CDUtils.h
Normal file
@ -0,0 +1,53 @@
|
||||
#ifndef CDUTILS_H
|
||||
#define CDUTILS_H
|
||||
|
||||
#ifdef _WIN32
|
||||
#include "windows.h"
|
||||
#define PATH_MAX MAX_PATH
|
||||
|
||||
#elif __APPLE__
|
||||
#include <paths.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <Carbon/Carbon.h>
|
||||
#include <IOKit/IOKitLib.h>
|
||||
#include <IOKit/storage/IOCDMedia.h>
|
||||
#include <IOKit/storage/IOMedia.h>
|
||||
#include <IOKit/IOBSD.h>
|
||||
|
||||
#elif __linux__
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <mntent.h>
|
||||
|
||||
#include <unistd.h>
|
||||
|
||||
#include <fcntl.h>
|
||||
#include <limits.h>
|
||||
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/ioctl.h>
|
||||
|
||||
#include <linux/cdrom.h>
|
||||
#endif // WIN32
|
||||
|
||||
/*
|
||||
Returns a pointer to an array of strings with the device names
|
||||
*/
|
||||
char **cdio_get_devices();
|
||||
|
||||
/*!
|
||||
Free device list returned by cdio_get_devices or
|
||||
cdio_get_devices_with_cap.
|
||||
*/
|
||||
void cdio_free_device_list(char * ppsz_device_list[]);
|
||||
|
||||
/*
|
||||
Returns true if device is cdrom/dvd
|
||||
*/
|
||||
bool cdio_is_cdrom(const char *device);
|
||||
|
||||
#endif // CDUTILS_H
|
Reference in New Issue
Block a user