New API call isoburn_get_attached_start_lba_v2()

This commit is contained in:
Thomas Schmitt 2024-03-09 22:21:18 +01:00
parent 423c14828c
commit 646d15af46
4 changed files with 19 additions and 2 deletions

View File

@ -118,7 +118,7 @@ IsoImage *isoburn_get_attached_image(struct burn_drive *d)
/* API */
int isoburn_get_attached_start_lba(struct burn_drive *d)
off_t isoburn_get_attached_start_lba_v2(struct burn_drive *d)
{
int ret;
struct isoburn *o= NULL;
@ -132,6 +132,17 @@ int isoburn_get_attached_start_lba(struct burn_drive *d)
}
int isoburn_get_attached_start_lba(struct burn_drive *d)
{
off_t ret;
ret= isoburn_get_attached_start_lba_v2(d);
if(ret >= 0 && ret < 0x7fffffff)
return((int) ret);
return(-1);
}
static void isoburn_idle_free_function(void *ignored)
{
return;

View File

@ -2468,6 +2468,11 @@ IsoImage *isoburn_get_attached_image(struct burn_drive *d);
*/
int isoburn_get_attached_start_lba(struct burn_drive *d);
/** Like isoburn_get_attached_start_lba(), but with off_t return value.
@since 1.5.8
*/
off_t isoburn_get_attached_start_lba_v2(struct burn_drive *d);
/** Load the ISO filesystem directory tree from the medium in the given drive.
This will give libisoburn the base on which it can let libisofs perform

View File

@ -364,6 +364,7 @@ local: *;
};
LIBISOBURN1_1.5.8 {
isoburn_get_attached_start_lba_v2;
isoburn_get_mount_params_v2;
isoburn_igopt_get_data_start_v2;
isoburn_igopt_get_effective_lba_v2;

View File

@ -1 +1 @@
#define Xorriso_timestamP "2024.03.09.210426"
#define Xorriso_timestamP "2024.03.09.212055"