From bff17fb1d0e39583e44ba93ea214d7434ecef2ce Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Fri, 3 Aug 2001 14:18:08 +0200 Subject: Added support for replaying DVDs --- dvd.h | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 dvd.h (limited to 'dvd.h') diff --git a/dvd.h b/dvd.h new file mode 100644 index 00000000..39094c5a --- /dev/null +++ b/dvd.h @@ -0,0 +1,46 @@ +/* + * dvd.h: Functions for handling DVDs + * + * See the main source file 'vdr.c' for copyright information and + * how to reach the author. + * + * Initially written by Andreas Schultz + * + * $Id: dvd.h 1.1 2001/08/03 12:35:42 kls Exp $ + */ + +#ifndef __DVD_H +#define __DVD_H + +#include +#include +#include +#include +#include +#include + +class cDVD { +private: + static cDVD *dvdInstance; + static const char *deviceName; + dvd_reader_t *dvd; + dvd_file_t *title; + ifo_handle_t *vmg_file; + ifo_handle_t *vts_file; + int titleset; +public: + cDVD(void); + ~cDVD(); + void Open(void); + void Close(void); + void Eject(void); + bool isValid(void) { return (dvd != NULL); } + ifo_handle_t *openVMG(void); + ifo_handle_t *openVTS(int TitleSet); + dvd_file_t *openTitle(int Title, dvd_read_domain_t domain); + static cDVD *getDVD(void); + static void SetDeviceName(const char *DeviceName); + static const char *DeviceName(void); + }; + +#endif //__DVD_H -- cgit v1.2.3