New API calls isoburn_ropt_set_data_cache(), isoburn_ropt_get_data_cache()
This commit is contained in:
@@ -263,7 +263,19 @@ int isoburn_get_msc2(struct isoburn *o,
|
||||
*/
|
||||
IsoDataSource *
|
||||
isoburn_data_source_new(struct burn_drive *d,
|
||||
uint32_t displacement, int displacement_sign);
|
||||
uint32_t displacement, int displacement_sign,
|
||||
int cache_tiles, int tile_blocks);
|
||||
|
||||
/** Default settings for above cache_tiles, tile_blocks in newly created
|
||||
struct isoburn_read_opts.
|
||||
*/
|
||||
#define Libisoburn_default_cache_tileS 32
|
||||
#define Libisoburn_default_tile_blockS 32
|
||||
|
||||
/** Maximum size of the cache in 2 kB blocks (1 GB)
|
||||
*/
|
||||
#define Libisoburn_cache_max_sizE (1024 * 512)
|
||||
|
||||
|
||||
/** Disable read capabilities of a data source which was originally created
|
||||
by isoburn_data_source_new(). After this any attempt to read will yield
|
||||
@@ -298,6 +310,9 @@ int isoburn_root_defaults(IsoImage *image, int flag);
|
||||
minor correction only.)
|
||||
*/
|
||||
struct isoburn_read_opts {
|
||||
int cache_tiles; /* number of cache tiles */
|
||||
int cache_tile_blocks;
|
||||
|
||||
unsigned int norock:1; /*< Do not read Rock Ridge extensions */
|
||||
unsigned int nojoliet:1; /*< Do not read Joliet extensions */
|
||||
unsigned int noiso1999:1; /*< Do not read ISO 9660:1999 enhanced tree */
|
||||
|
Reference in New Issue
Block a user