aboutsummaryrefslogtreecommitdiff
path: root/xbmc/storage/IStorageProvider.h
diff options
context:
space:
mode:
Diffstat (limited to 'xbmc/storage/IStorageProvider.h')
-rw-r--r--xbmc/storage/IStorageProvider.h18
1 files changed, 14 insertions, 4 deletions
diff --git a/xbmc/storage/IStorageProvider.h b/xbmc/storage/IStorageProvider.h
index 64056533e5..89654192a1 100644
--- a/xbmc/storage/IStorageProvider.h
+++ b/xbmc/storage/IStorageProvider.h
@@ -1,6 +1,6 @@
#pragma once
/*
- * Copyright (C) 2005-2009 Team XBMC
+ * Copyright (C) 2005-2012 Team XBMC
* http://www.xbmc.org
*
* This Program is free software; you can redistribute it and/or modify
@@ -14,13 +14,15 @@
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with XBMC; see the file COPYING. If not, write to
- * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
- * http://www.gnu.org/copyleft/gpl.html
+ * along with XBMC; see the file COPYING. If not, see
+ * <http://www.gnu.org/licenses/>.
*
*/
#include "system.h"
#include "MediaSource.h"
+#ifdef HAS_DVD_DRIVE
+#include "cdioSupport.h"
+#endif
class IStorageEventsCallback
{
@@ -42,6 +44,14 @@ public:
virtual void GetLocalDrives(VECSOURCES &localDrives) = 0;
virtual void GetRemovableDrives(VECSOURCES &removableDrives) = 0;
+ virtual std::string GetFirstOpticalDeviceFileName()
+ {
+#ifdef HAS_DVD_DRIVE
+ return std::string(MEDIA_DETECT::CLibcdio::GetInstance()->GetDeviceFileName());
+#else
+ return "";
+#endif
+ }
virtual bool Eject(CStdString mountpath) = 0;