#include <revolution/dvd.h>
typedef struct DVDFileInfo DVDFileInfo;
struct DVDFileInfo
{
#ifndef MACOS
DVDCommandBlock cb;
#endif
...
}
Not all structure members are listed. For a complete list, see dvd.h. Do not directly access these members: they are subject to change.)
The DVDFileInfo structure holds file information. It also contains the DVDCommandBlock structure for internal use. For this purpose, the DVDFileInfo structure that is in use (for example, currently being transferred or in the DVD queue) must not be used. For more detail, see DVDCommandBlock.
To divide a file into two parts and to issue a read, open the file twice using separate DVDFileInfo structures. The best method for implementation is as follows:
entrynum = DVDConvertPathToEntrynum(file);
DVDFastOpen(entrynum, fileinfo1);
DVDFastOpen(entrynum, fileinfo2);
Because the first member of the DVDFileInfo structure is guaranteed to be cb (DVDCommandBlock), simply casting a structure allows access to the DVDCommandBlock structure. For example, to cancel a read request using fileInfo of a DVDFileInfo structure, call
DVDCancel((DVDCommandBlock*)&fileInfo);
2006/03/01 Initial version.
CONFIDENTIAL