New API call isoburn_igopt_set_part_flag() and libisofs interval reader flags

This commit is contained in:
2015-04-23 13:51:44 +00:00
parent 9624cdd825
commit 5cd5f6abf9
6 changed files with 114 additions and 8 deletions

View File

@ -242,7 +242,7 @@ void isoburn_version(int *major, int *minor, int *micro);
*/
#define isoburn_libisofs_req_major 1
#define isoburn_libisofs_req_minor 3
#define isoburn_libisofs_req_micro 8
#define isoburn_libisofs_req_micro 9
/** The minimum version of libburn to be used with this version of libisoburn
at compile time.
@ -1711,7 +1711,13 @@ int isoburn_igopt_get_tail_blocks(struct isoburn_imgen_opts *opts,
@param path
File address in the local file system.
@param flag
Reserved for future usage, set to 0.
With isoburn_igopt_set_prep_partition():
Control bits as of iso_write_opts_set_efi_bootp()
bit0= The path contains instructions for the interval libisofs
reader. See libisofs.h.
@since 1.4.0
With isoburn_igopt_get_prep_partition():
bit0= add the current flag setting & 0x3fffffff to return value 1.
@return 1 success, <=0 failure
*/
int isoburn_igopt_set_prep_partition(struct isoburn_imgen_opts *opts,
@ -1719,14 +1725,24 @@ int isoburn_igopt_set_prep_partition(struct isoburn_imgen_opts *opts,
int isoburn_igopt_get_prep_partition(struct isoburn_imgen_opts *opts,
char **path, int flag);
/** Copy a data file from the local filesystem into the emerging ISO image.
/** Copy a data file from the local filesystem into the emerging ISO image
and mark it by a GPT entry as EFI system partition.
@since 1.2.4
@param opts
The option set to be manipulated.
@param path
File address in the local file system.
Instead of a disk path, the word --efi-boot-image may be given.
It exposes in GPT the content of the first El Torito EFI boot image
as EFI system partition.
@param flag
Reserved for future usage, set to 0.
With isoburn_igopt_get_efi_bootp():
Control bits as of iso_write_opts_set_efi_bootp()
bit0= The path contains instructions for the interval libisofs
reader. See libisofs.h.
@since 1.4.0
With isoburn_igopt_set_efi_bootp():
bit0= add the current flag setting & 0x3fffffff to return value 1.
@return 1 success, <=0 failure
*/
int isoburn_igopt_set_efi_bootp(struct isoburn_imgen_opts *opts,
@ -1791,6 +1807,43 @@ int isoburn_igopt_get_partition_img(struct isoburn_imgen_opts *opts,
char *image_paths[]);
/** Set flag bits for a partition defined by isoburn_igopt_set_partition_img().
The bits will be forwarded to libisofs iso_write_opts_set_partition_img().
@since 1.4.0
@param opts
The option set to be manipulated.
@param partition_number
Depicts the partition table entry to which shall the flags bits
shall apply.
@param flag
Control bits as of iso_write_opts_set_partition_img()
bit0= The path contains instructions for the interval libisofs
reader. See libisofs.h.
@since 1.4.0
@return
<=0 = error, 1 = success
*/
int isoburn_igopt_set_part_flag(struct isoburn_imgen_opts *opts,
int partition_number, int flag);
/** Inquire the current settings made by isoburn_igopt_set_part_flags().
@since 1.4.0
@param opts
The option set to be inquired.
@param num_entries
Number of array elements in part_flags[].
@param part_flags
The array elements 0 to num_entries - 1 will get filled by the
flag bits of the images of the corresponding partition.
@return
<0 = error
0 = no partition image set
>0 highest used partition number
*/
int isoburn_igopt_get_part_flags(struct isoburn_imgen_opts *opts,
int num_entries, int part_flags[]);
/** Control whether partitions created by iso_write_opts_set_partition_img()
are to be represented in MBR or as GPT partitions.
@since 1.4.0