comparison dvdread/dvd_reader.h @ 46:4f40782ab5fc src

Expose the dvd_stat_t struct. The commits that brought in the DVDFileStat() function from libdvdread 0.9.7 incorrectly made the stat struct opaque. This can't be done because the API does not use any allocation or deallocation code. So callers of DVDFileStat cannot declare stat structs. Since we are attempting to maintain the API compatibility w/ those releases of libdvdread, the struct has been brought into the header. Thanks again to Rathann for bringing this issue to the dvdnav list. And thanks to the original bug reportera(O. Rolland) to fedora.
author erik
date Mon, 07 Dec 2009 03:50:20 +0000
parents 92b4694792da
children
comparison
equal deleted inserted replaced
45:3307493f20c5 46:4f40782ab5fc
68 * Opaque type for a file read handle, much like a normal fd or FILE *. 68 * Opaque type for a file read handle, much like a normal fd or FILE *.
69 */ 69 */
70 typedef struct dvd_file_s dvd_file_t; 70 typedef struct dvd_file_s dvd_file_t;
71 71
72 /** 72 /**
73 * Opaque type that is used to provide statistics on a handle. 73 * Public type that is used to provide statistics on a handle.
74 */ 74 */
75 typedef struct dvd_stat_s dvd_stat_t; 75 typedef struct {
76 off_t size; /**< Total size of file in bytes */
77 int nr_parts; /**< Number of file parts */
78 off_t parts_size[9]; /**< Size of each part in bytes */
79 } dvd_stat_t;
76 80
77 /** 81 /**
78 * Opens a block device of a DVD-ROM file, or an image file, or a directory 82 * Opens a block device of a DVD-ROM file, or an image file, or a directory
79 * name for a mounted DVD or HD copy of a DVD. 83 * name for a mounted DVD or HD copy of a DVD.
80 * 84 *