comparison dvd_reader.c @ 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 3307493f20c5
children 9db0de5db7c8
comparison
equal deleted inserted replaced
45:3307493f20c5 46:4f40782ab5fc
107 size_t title_sizes[ TITLES_MAX ]; 107 size_t title_sizes[ TITLES_MAX ];
108 dvd_input_t title_devs[ TITLES_MAX ]; 108 dvd_input_t title_devs[ TITLES_MAX ];
109 109
110 /* Calculated at open-time, size in blocks. */ 110 /* Calculated at open-time, size in blocks. */
111 ssize_t filesize; 111 ssize_t filesize;
112 };
113
114 struct dvd_stat_s {
115 off_t size; /**< Total size of file in bytes */
116 int nr_parts; /**< Number of file parts */
117 off_t parts_size[9]; /**< Size of each part in bytes */
118 }; 112 };
119 113
120 int UDFReadBlocksRaw( dvd_reader_t *device, uint32_t lb_number, 114 int UDFReadBlocksRaw( dvd_reader_t *device, uint32_t lb_number,
121 size_t block_count, unsigned char *data, 115 size_t block_count, unsigned char *data,
122 int encrypted ); 116 int encrypted );