2003-12-17 10:20:53 +00:00
|
|
|
#ifndef MEMORY_CARD_DRIVER_LINUX_H
|
|
|
|
|
#define MEMORY_CARD_DRIVER_LINUX_H 1
|
|
|
|
|
|
2003-12-17 19:51:11 +00:00
|
|
|
#include "MemoryCardDriver.h"
|
2004-03-21 22:32:16 +00:00
|
|
|
#include "RageThreads.h"
|
2003-12-17 19:51:11 +00:00
|
|
|
|
2003-12-17 10:20:53 +00:00
|
|
|
class MemoryCardDriver_Linux : public MemoryCardDriver
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
MemoryCardDriver_Linux();
|
|
|
|
|
virtual ~MemoryCardDriver_Linux();
|
|
|
|
|
virtual bool StorageDevicesChanged();
|
|
|
|
|
virtual void GetStorageDevices( vector<UsbStorageDevice>& vStorageDevicesOut );
|
2004-03-14 01:40:24 +00:00
|
|
|
virtual bool MountAndTestWrite( UsbStorageDevice* pDevice, CString sMountPoint );
|
2004-03-20 22:30:12 +00:00
|
|
|
virtual void Unmount( UsbStorageDevice* pDevice, CString sMountPoint );
|
2003-12-20 02:38:15 +00:00
|
|
|
virtual void Flush( UsbStorageDevice* pDevice );
|
2004-02-26 07:36:30 +00:00
|
|
|
virtual void ResetUsbStorage();
|
2004-03-21 22:32:16 +00:00
|
|
|
static int MountThread_Start( void *p );
|
|
|
|
|
void MountThreadMain();
|
2003-12-17 10:20:53 +00:00
|
|
|
protected:
|
2004-03-21 22:32:16 +00:00
|
|
|
RageThread MountThread;
|
|
|
|
|
bool shutdown;
|
|
|
|
|
|
|
|
|
|
RageMutex m_StorageDevicesChangedMutex;
|
|
|
|
|
bool m_bStorageDevicesChanged;
|
2003-12-17 10:20:53 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2003 by the person(s) listed below. All rights reserved.
|
|
|
|
|
* Chris Danford
|
|
|
|
|
*/
|