2008-01-10 15:20:57 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
API definition of libisoburn.
|
|
|
|
|
2008-01-28 14:02:48 +00:00
|
|
|
Copyright 2007-2008 Vreixo Formoso Lopes <metalpain2002@yahoo.es>
|
|
|
|
and Thomas Schmitt <scdbackup@gmx.net>
|
2008-01-10 15:20:57 +00:00
|
|
|
*/
|
|
|
|
|
2008-01-28 14:02:48 +00:00
|
|
|
/** Overview
|
2008-01-10 15:20:57 +00:00
|
|
|
|
|
|
|
libisoburn is a frontend for libraries libburn and libisofs which enables
|
|
|
|
creation and expansion of ISO-9660 filesystems on all CD/DVD media supported
|
|
|
|
by libburn. This includes media like DVD+RW, which do not support multi-session
|
|
|
|
management on media level and even plain disk files or block devices.
|
|
|
|
|
|
|
|
The price for that is thorough specialization on data files in ISO-9660
|
|
|
|
filesystem images. So libisoburn is not suitable for audio (CD-DA) or any
|
|
|
|
other CD layout which does not entirely consist of ISO-9660 sessions.
|
|
|
|
|
2008-02-14 08:44:29 +00:00
|
|
|
|
|
|
|
Connector functions
|
|
|
|
|
|
|
|
libisofs and libburn do not depend on each other but share some interfaces
|
|
|
|
by which they can cooperate.
|
|
|
|
libisoburn establishes the connection between both modules by creating the
|
|
|
|
necessary interface objects and attaching them to the right places.
|
|
|
|
|
|
|
|
|
2008-01-28 14:02:48 +00:00
|
|
|
Wrapper functions
|
|
|
|
|
2008-01-10 15:20:57 +00:00
|
|
|
The priciple of this frontend is that you may use any call of libisofs or
|
|
|
|
libburn unless it has a isoburn_*() wrapper listed in the following function
|
|
|
|
documentation.
|
|
|
|
|
2008-01-29 13:00:46 +00:00
|
|
|
E.g. call isoburn_initialize() rather than iso_init(); burn_initialize();
|
2008-01-10 15:20:57 +00:00
|
|
|
and call isoburn_drive_scan_and_grab() rather than burn_drive_scan_and_grab().
|
|
|
|
But you may call burn_disc_get_profile() directly if you want to display
|
|
|
|
the media type.
|
|
|
|
|
|
|
|
The wrappers will transparently provide the necessary emulations which
|
2008-01-29 13:00:46 +00:00
|
|
|
are appropriate for particular target drives and media states.
|
2008-01-28 14:02:48 +00:00
|
|
|
To learn about them you have to read both API descriptions: the one of
|
|
|
|
the wrapper and the one of the underlying libburn or libisofs call.
|
|
|
|
|
2008-02-14 08:44:29 +00:00
|
|
|
Macros BURN_* and functions burn_*() are documented in <libburn/libburn.h>
|
|
|
|
Macros ISO_* and functions iso_*() are documented in <libisofs/libisofs.h>
|
|
|
|
|
2008-01-28 14:02:48 +00:00
|
|
|
|
2008-02-14 08:44:29 +00:00
|
|
|
Usage model
|
2008-01-28 14:02:48 +00:00
|
|
|
|
|
|
|
There may be an input drive and an output drive. Either of them may be missing
|
|
|
|
with the consequence that no reading resp. writing is possible.
|
|
|
|
Both drive roles can be fulfilled by the same drive.
|
|
|
|
|
|
|
|
Input can be a random access readable libburn drive:
|
|
|
|
optical media, regular files, block devices.
|
|
|
|
Output can be any writeable libburn drive:
|
2008-01-29 13:00:46 +00:00
|
|
|
writeable optical media in burner, writeable file objects (no directories).
|
2008-01-28 14:02:48 +00:00
|
|
|
|
2008-01-29 13:00:46 +00:00
|
|
|
libburn demands rw-permissions to drive device file resp. file object.
|
2008-01-28 14:02:48 +00:00
|
|
|
|
|
|
|
If the input drive provides a suitable ISO RockRidge image, then its tree
|
|
|
|
may be loaded into memory and can then be manipulated by libisofs API calls.
|
|
|
|
The loading is done by isoburn_read_image() under control of
|
2008-02-15 21:19:24 +00:00
|
|
|
struct isoburn_read_opts which the application obtains from libisoburn
|
|
|
|
and manipulates by the family of isoburn_ropt_set_*() functions.
|
2008-01-28 14:02:48 +00:00
|
|
|
|
|
|
|
Writing of result images is controlled by libisofs related parameters
|
2008-02-15 21:19:24 +00:00
|
|
|
in a struct isoburn_imgen_opts which the application obtains from libisoburn
|
|
|
|
and manipulates by the family of isoburn_igopt_set_*() functions.
|
2008-01-28 14:02:48 +00:00
|
|
|
|
|
|
|
All multi-session aspects are handled by libisoburn according to these
|
|
|
|
settings. The application does not have to analyze media state and write
|
2008-01-29 13:00:46 +00:00
|
|
|
job parameters. It rather states its desires which libisoburn tries to
|
|
|
|
fulfill, or else will refuse to start the write run.
|
2008-01-28 14:02:48 +00:00
|
|
|
|
2008-02-14 08:44:29 +00:00
|
|
|
|
2008-01-28 14:02:48 +00:00
|
|
|
Setup for Growing or Modifying
|
|
|
|
|
2008-02-14 08:44:29 +00:00
|
|
|
The connector function family offers two alternative API calls for performing
|
|
|
|
the setup for two alternative image generation strategies.
|
2008-01-28 14:02:48 +00:00
|
|
|
|
|
|
|
Growing:
|
|
|
|
If input and output drive is the same, then isoburn_prepare_disc() is to
|
|
|
|
be used. It will lead to an add-on session on appendable or overwriteable
|
|
|
|
media with existing ISO image. With blank media it will produce a first
|
|
|
|
session.
|
|
|
|
|
|
|
|
Modifying:
|
|
|
|
If the output drive is not the input drive, then it has to bear blank media
|
|
|
|
or overwriteable without a valid ISO image. To prepare for such an image
|
|
|
|
generation run, use isoburn_prepare_new_image(). The run will copy file data
|
|
|
|
from an eventual input drive with valid image, add any newly introduced data
|
|
|
|
from the local filesystem, and produce a first session on output media.
|
|
|
|
|
|
|
|
After either of these setups, some peripheral libburn drive parameter settings
|
|
|
|
like burn_write_opts_set_simulate(), burn_write_opts_set_multi(),
|
|
|
|
burn_drive_set_speed(), burn_write_opts_set_underrun_proof() should be made.
|
|
|
|
Do not set the write mode. It will be chosen by libisoburn so it matches job
|
|
|
|
and media state.
|
|
|
|
|
|
|
|
Writing the image
|
|
|
|
|
|
|
|
Then one may start image generation and write threads by isoburn_disc_write().
|
|
|
|
Progress may be watched at the output drive by burn_drive_get_status() and
|
|
|
|
isoburn_get_fifo_status().
|
|
|
|
|
|
|
|
At some time, the output drive will be BURN_DRIVE_IDLE indicating that
|
|
|
|
writing has ended.
|
|
|
|
One should inquire isoburn_drive_wrote_well() to learn about overall success.
|
|
|
|
|
2008-02-14 08:44:29 +00:00
|
|
|
Finally one must call isoburn_activate_session() which will complete any
|
2008-01-28 14:02:48 +00:00
|
|
|
eventual multi-session emulation.
|
2008-01-10 15:20:57 +00:00
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
/* API functions */
|
|
|
|
|
|
|
|
|
|
|
|
/** Initialize libisoburn, libisofs and libburn.
|
|
|
|
Wrapper for : iso_init() and burn_initialize()
|
2008-02-14 08:44:29 +00:00
|
|
|
@since 0.1.0
|
|
|
|
@param msg A character array for eventual messages (e.g. with errors)
|
|
|
|
@param flag Bitfield for control purposes (unused yet, submit 0)
|
2008-01-10 15:20:57 +00:00
|
|
|
@return 1 indicates success, 0 is failure
|
|
|
|
*/
|
2008-01-26 11:36:58 +00:00
|
|
|
int isoburn_initialize(char msg[1024], int flag);
|
2008-01-10 15:20:57 +00:00
|
|
|
|
|
|
|
|
2008-01-29 18:44:54 +00:00
|
|
|
/** Check whether all features of header file libisoburn.h from the given
|
|
|
|
major.minor.micro revision triple can be delivered by the library version
|
|
|
|
which is performing this call.
|
|
|
|
An application of libisoburn can easily memorize the version of the
|
|
|
|
libisofs.h header in its own code. Immediately after isoburn_initialize()
|
|
|
|
it should simply do this check:
|
|
|
|
if (! isoburn_is_compatible(isoburn_header_version_major,
|
|
|
|
isoburn_header_version_minor,
|
|
|
|
isoburn_header_version_micro, 0))
|
|
|
|
...refuse to start the program with this dynamic library version...
|
2008-02-14 08:44:29 +00:00
|
|
|
@since 0.1.0
|
2008-01-29 18:44:54 +00:00
|
|
|
@param major obtained at build time
|
|
|
|
@param minor obtained at build time
|
|
|
|
@param micro obtained at build time
|
|
|
|
@param flag Bitfield for control purposes. Unused yet. Submit 0.
|
|
|
|
@return 1= library can work for caller
|
|
|
|
0= library is not usable in some aspects. Caller must restrict
|
|
|
|
itself to an earlier API version or must not use this libray
|
|
|
|
at all.
|
|
|
|
*/
|
|
|
|
int isoburn_is_compatible(int major, int minor, int micro, int flag);
|
|
|
|
|
|
|
|
|
|
|
|
/** Obtain the three release version numbers of the library. These are the
|
2008-01-29 21:06:46 +00:00
|
|
|
numbers encountered by the application when linking with libisoburn,
|
2008-01-29 18:44:54 +00:00
|
|
|
i.e. possibly not before run time.
|
|
|
|
Better do not base the fundamental compatibility decision of an application
|
|
|
|
on these numbers. For a reliable check use isoburn_is_compatible().
|
2008-02-14 08:44:29 +00:00
|
|
|
@since 0.1.0
|
2008-01-26 12:06:26 +00:00
|
|
|
@param major The maturity version (0 for now, as we are still learning)
|
|
|
|
@param minor The development goal version.
|
|
|
|
@param micro The development step version. This has an additional meaning:
|
2008-01-29 18:44:54 +00:00
|
|
|
|
2008-01-26 12:06:26 +00:00
|
|
|
Pare numbers indicate a version with frozen API. I.e. you can
|
|
|
|
rely on the same set of features to be present in all
|
|
|
|
published releases with that major.minor.micro combination.
|
2008-02-15 21:19:24 +00:00
|
|
|
Features of a pare release will stay available and ABI
|
|
|
|
compatible as long as the SONAME of libisoburn stays "1".
|
|
|
|
Currently there are no plans to ever change the SONAME.
|
|
|
|
|
2008-01-26 12:06:26 +00:00
|
|
|
Odd numbers indicate that API upgrades are in progress.
|
|
|
|
I.e. new features might be already present or they might
|
2008-02-15 21:19:24 +00:00
|
|
|
be still missing. Newly introduced features may be changed
|
|
|
|
incompatibly or even be revoked before release of a pare
|
|
|
|
version.
|
2008-01-29 18:44:54 +00:00
|
|
|
So micro revisions {1,3,5,7,9} should never be used for
|
|
|
|
dynamic linking unless the proper library match can be
|
|
|
|
guaranteed by external circumstances.
|
2008-02-15 21:19:24 +00:00
|
|
|
|
2008-02-14 08:44:29 +00:00
|
|
|
@return 1 success, <=0 might in future become an error indication
|
2008-01-26 12:06:26 +00:00
|
|
|
*/
|
|
|
|
void isoburn_version(int *major, int *minor, int *micro);
|
|
|
|
|
2008-02-14 08:44:29 +00:00
|
|
|
|
2008-01-31 21:47:39 +00:00
|
|
|
/** The minimum version of libisofs to be used with this version of libisoburn
|
2008-02-06 13:11:20 +00:00
|
|
|
at compile time.
|
2008-02-14 08:44:29 +00:00
|
|
|
@since 0.1.0
|
2008-01-31 21:47:39 +00:00
|
|
|
*/
|
|
|
|
#define isoburn_libisofs_req_major 0
|
|
|
|
#define isoburn_libisofs_req_minor 6
|
2008-06-01 14:51:29 +00:00
|
|
|
#define isoburn_libisofs_req_micro 6
|
2008-01-31 21:47:39 +00:00
|
|
|
|
|
|
|
/** The minimum version of libburn to be used with this version of libisoburn
|
2008-02-06 13:11:20 +00:00
|
|
|
at compile time.
|
2008-02-14 08:44:29 +00:00
|
|
|
@since 0.1.0
|
2008-01-31 21:47:39 +00:00
|
|
|
*/
|
|
|
|
#define isoburn_libburn_req_major 0
|
|
|
|
#define isoburn_libburn_req_minor 4
|
2008-05-18 08:48:07 +00:00
|
|
|
#define isoburn_libburn_req_micro 8
|
2008-01-31 21:47:39 +00:00
|
|
|
|
2008-02-06 13:11:20 +00:00
|
|
|
|
|
|
|
/** The minimum version of libisofs to be used with this version of libisoburn
|
|
|
|
at runtime. This is checked already in isoburn_initialize() which will
|
|
|
|
refuse on outdated version. So this call is for information purposes after
|
|
|
|
successful startup only.
|
2008-02-14 08:44:29 +00:00
|
|
|
@since 0.1.0
|
|
|
|
@param major isoburn_libisofs_req_major as seen at build time
|
|
|
|
@param minor as seen at build time
|
|
|
|
@param micro as seen at build time
|
|
|
|
@return 1 success, <=0 might in future become an error indication
|
2008-02-06 13:11:20 +00:00
|
|
|
*/
|
|
|
|
int isoburn_libisofs_req(int *major, int *minor, int *micro);
|
|
|
|
|
|
|
|
|
|
|
|
/** The minimum version of libburn to be used with this version of libisoburn
|
|
|
|
at runtime. This is checked already in isoburn_initialize() which will
|
|
|
|
refuse on outdated version. So this call is for information purposes after
|
|
|
|
successful startup only.
|
2008-02-14 08:44:29 +00:00
|
|
|
@since 0.1.0
|
|
|
|
@param major isoburn_libburn_req_major as seen at build time
|
|
|
|
@param minor as seen at build time
|
|
|
|
@param micro as seen at build time
|
|
|
|
@return 1 success, <=0 might in future become an error indication
|
2008-02-06 13:11:20 +00:00
|
|
|
*/
|
|
|
|
int isoburn_libburn_req(int *major, int *minor, int *micro);
|
|
|
|
|
|
|
|
|
2008-01-31 21:47:39 +00:00
|
|
|
/** These three release version numbers tell the revision of this header file
|
|
|
|
and of the API it describes. They are memorized by applications at build
|
|
|
|
time.
|
2008-02-14 08:44:29 +00:00
|
|
|
@since 0.1.0
|
2008-01-31 21:47:39 +00:00
|
|
|
*/
|
|
|
|
#define isoburn_header_version_major 0
|
2008-02-15 21:19:24 +00:00
|
|
|
#define isoburn_header_version_minor 1
|
2008-06-02 15:29:46 +00:00
|
|
|
#define isoburn_header_version_micro 9
|
2008-01-31 21:47:39 +00:00
|
|
|
/** Note:
|
|
|
|
Above version numbers are also recorded in configure.ac because libtool
|
|
|
|
wants them as parameters at build time.
|
2008-02-15 21:19:24 +00:00
|
|
|
For the library compatibility check, ISOBURN_*_VERSION in configure.ac
|
|
|
|
are not decisive. Only the three numbers here do matter.
|
2008-01-31 21:47:39 +00:00
|
|
|
*/
|
|
|
|
/** Usage discussion:
|
|
|
|
|
|
|
|
Some developers of the libburnia project have differing
|
|
|
|
opinions how to ensure the compatibility of libaries
|
|
|
|
and applications.
|
|
|
|
|
|
|
|
It is about whether to use at compile time and at runtime
|
|
|
|
the version numbers isoburn_header_version_* provided here.
|
|
|
|
Thomas Schmitt advises to use them.
|
|
|
|
Vreixo Formoso advises to use other means.
|
|
|
|
|
|
|
|
At compile time:
|
|
|
|
|
|
|
|
Vreixo Formoso advises to leave proper version matching
|
|
|
|
to properly programmed checks in the the application's
|
|
|
|
build system, which will eventually refuse compilation.
|
|
|
|
|
|
|
|
Thomas Schmitt advises to use the macros defined here
|
|
|
|
for comparison with the application's requirements of
|
|
|
|
library revisions and to eventually break compilation.
|
|
|
|
|
|
|
|
Both advises are combinable. I.e. be master of your
|
|
|
|
build system and have #if checks in the source code
|
|
|
|
of your application, nevertheless.
|
|
|
|
|
|
|
|
At runtime (via *_is_compatible()):
|
|
|
|
|
|
|
|
Vreixo Formoso advises to compare the application's
|
|
|
|
requirements of library revisions with the runtime
|
|
|
|
library. This is to allow runtime libraries which are
|
|
|
|
young enough for the application but too old for
|
|
|
|
the lib*.h files seen at compile time.
|
|
|
|
|
|
|
|
Thomas Schmitt advises to compare the header
|
|
|
|
revisions defined here with the runtime library.
|
|
|
|
This is to enforce a strictly monotonous chain
|
|
|
|
of revisions from app to header to library,
|
|
|
|
at the cost of excluding some older libraries.
|
|
|
|
|
|
|
|
These two advises are mutually exclusive.
|
|
|
|
|
2008-02-15 21:19:24 +00:00
|
|
|
-----------------------------------------------------
|
|
|
|
|
2008-01-31 21:47:39 +00:00
|
|
|
For an implementation of the Thomas Schmitt approach,
|
|
|
|
see libisoburn/burn_wrap.c : isoburn_initialize()
|
2008-02-15 21:19:24 +00:00
|
|
|
This connects libisoburn as "application" with libisofs
|
|
|
|
as "library".
|
|
|
|
|
|
|
|
The compatible part of Vreixo Formoso's approach is implemented
|
|
|
|
in configure.ac LIBBURN_REQUIRED, LIBISOFS_REQUIRED.
|
|
|
|
In isoburn_initialize() it would rather test by
|
|
|
|
iso_lib_is_compatible(isoburn_libisofs_req_major,...
|
|
|
|
than by
|
|
|
|
iso_lib_is_compatible(iso_lib_header_version_major,...
|
|
|
|
and would leave out the ugly compile time traps.
|
2008-01-31 21:47:39 +00:00
|
|
|
|
|
|
|
*/
|
|
|
|
|
2008-01-26 12:06:26 +00:00
|
|
|
|
2008-01-10 15:20:57 +00:00
|
|
|
/** Aquire a target drive by its filesystem path resp. libburn persistent
|
|
|
|
address.
|
|
|
|
Wrapper for: burn_drive_scan_and_grab()
|
2008-02-14 08:44:29 +00:00
|
|
|
@since 0.1.0
|
|
|
|
@param drive_infos On success returns a one element array with the drive
|
|
|
|
(cdrom/burner). Thus use with driveno 0 only. On failure
|
|
|
|
the array has no valid elements at all.
|
|
|
|
The returned array should be freed via burn_drive_info_free()
|
|
|
|
when the drive is no longer needed.
|
|
|
|
@param adr The persistent address of the desired drive.
|
|
|
|
@param load 1 attempt to load the disc tray. 0 no attempt,rather failure.
|
|
|
|
@return 1 = success , 0 = drive not found , <0 = other error
|
2008-01-10 15:20:57 +00:00
|
|
|
*/
|
|
|
|
int isoburn_drive_scan_and_grab(struct burn_drive_info *drive_infos[],
|
|
|
|
char* adr, int load);
|
|
|
|
|
|
|
|
|
2008-02-20 23:48:08 +00:00
|
|
|
/** Aquire a target drive by its filesystem path resp. libburn persistent
|
|
|
|
address. This is a modern successor of isoburn_drive_scan_and_grab().
|
|
|
|
Wrapper for: burn_drive_scan_and_grab()
|
|
|
|
@since 0.1.2
|
|
|
|
@param drive_infos On success returns a one element array with the drive
|
|
|
|
(cdrom/burner). Thus use with driveno 0 only. On failure
|
|
|
|
the array has no valid elements at all.
|
|
|
|
The returned array should be freed via burn_drive_info_free()
|
|
|
|
when the drive is no longer needed.
|
|
|
|
@param adr The persistent address of the desired drive.
|
|
|
|
@param flag bit0= attempt to load the disc tray.
|
|
|
|
Else: failure if not loaded.
|
|
|
|
bit1= regard overwriteable media as blank
|
2008-02-21 18:52:52 +00:00
|
|
|
bit2= if the drive is a regular disk file: truncate it to
|
|
|
|
the write start address
|
2008-05-08 14:10:43 +00:00
|
|
|
bit3= if the drive reports a read-only profile try to read
|
|
|
|
table of content by scanning for ISO image headers.
|
|
|
|
(depending on media type and drive this might
|
|
|
|
help or it might make the resulting toc even worse)
|
2008-02-20 23:48:08 +00:00
|
|
|
@return 1 = success , 0 = drive not found , <0 = other error
|
|
|
|
*/
|
|
|
|
int isoburn_drive_aquire(struct burn_drive_info *drive_infos[],
|
|
|
|
char* adr, int flag);
|
|
|
|
|
|
|
|
|
2008-01-10 15:20:57 +00:00
|
|
|
/** Aquire a drive from the burn_drive_info[] array which was obtained by
|
|
|
|
a previous call of burn_drive_scan().
|
|
|
|
Wrapper for: burn_drive_grab()
|
2008-02-14 08:44:29 +00:00
|
|
|
@since 0.1.0
|
|
|
|
@param drive The drive to grab. E.g. drive_infos[1].drive .
|
|
|
|
@param load 1 attempt to load the disc tray. 0 no attempt, rather failure.
|
|
|
|
@return 1 success, <=0 failure
|
2008-01-10 15:20:57 +00:00
|
|
|
*/
|
|
|
|
int isoburn_drive_grab(struct burn_drive *drive, int load);
|
|
|
|
|
|
|
|
|
|
|
|
/** Inquire the media status. Expect the whole spectrum of libburn BURN_DISC_*
|
|
|
|
with multi-session media. Emulated states with random access media are
|
|
|
|
BURN_DISC_BLANK and BURN_DISC_APPENDABLE.
|
|
|
|
Wrapper for: burn_disc_get_status()
|
2008-02-14 08:44:29 +00:00
|
|
|
@since 0.1.0
|
|
|
|
@param drive The drive to inquire.
|
|
|
|
@return The status of the drive, or what kind of disc is in it.
|
|
|
|
Note: BURN_DISC_UNGRABBED indicates wrong API usage
|
2008-01-10 15:20:57 +00:00
|
|
|
*/
|
|
|
|
enum burn_disc_status isoburn_disc_get_status(struct burn_drive *drive);
|
|
|
|
|
|
|
|
|
|
|
|
/** Tells whether the media can be treated by isoburn_disc_erase().
|
|
|
|
Wrapper for: burn_disc_erasable()
|
2008-02-14 08:44:29 +00:00
|
|
|
@since 0.1.0
|
|
|
|
@param drive The drive to inquire.
|
|
|
|
@return 0=not erasable , else erasable
|
2008-01-10 15:20:57 +00:00
|
|
|
*/
|
|
|
|
int isoburn_disc_erasable(struct burn_drive *d);
|
|
|
|
|
|
|
|
|
|
|
|
/** Mark the media as blank. With multi-session media this will call
|
|
|
|
burn_disc_erase(). With random access media, an eventual ISO-9660
|
|
|
|
filesystem will get invalidated by altering its start blocks on media.
|
|
|
|
In case of success, the media is in status BURN_DISC_BLANK afterwards.
|
|
|
|
Wrapper for: burn_disc_erase()
|
2008-02-14 08:44:29 +00:00
|
|
|
@since 0.1.0
|
|
|
|
@param drive The drive with the media to erase.
|
|
|
|
@param fast 1=fast erase, 0=thorough erase
|
|
|
|
With DVD-RW, fast erase yields media incapable of multi-session.
|
2008-01-10 15:20:57 +00:00
|
|
|
*/
|
|
|
|
void isoburn_disc_erase(struct burn_drive *drive, int fast);
|
|
|
|
|
2008-01-28 14:02:48 +00:00
|
|
|
|
2008-05-12 08:13:16 +00:00
|
|
|
/** Program isoburn_disc_get_msc1() to return a fabricated value.
|
|
|
|
This makes only sense between aquiring the drive and reading the
|
|
|
|
image. After isoburn_read_image() it will confuse the coordination
|
|
|
|
of libisoburn and libisofs.
|
|
|
|
Note: Sessions and tracks are counted beginning with 1, not with 0.
|
|
|
|
@since 0.1.6
|
|
|
|
@param drive The drive where msc1 is to be set
|
|
|
|
@param adr_mode Determines how to interpret adr_value and to set msc1.
|
|
|
|
If adr_value shall represent a number then decimal ASCII
|
|
|
|
digits are expected.
|
|
|
|
0= start lba of last session in TOC, ignore adr_value
|
|
|
|
1= start lba of session number given by adr_value
|
|
|
|
2= start lba of track given number by adr_value
|
|
|
|
3= adr_value itself is the lba to be used
|
|
|
|
4= start lba of last session with volume id
|
|
|
|
given by adr_value
|
|
|
|
@parm adr_value A string describing the value to be eventually used.
|
|
|
|
@param flag Bitfield for control purposes. Unused yet. Submit 0.
|
|
|
|
*/
|
|
|
|
int isoburn_set_msc1(struct burn_drive *d, int adr_mode, char *adr_value,
|
|
|
|
int flag);
|
|
|
|
|
|
|
|
|
2008-05-07 17:54:55 +00:00
|
|
|
/* ----------------------------------------------------------------------- */
|
|
|
|
/*
|
|
|
|
|
|
|
|
Wrappers for emulation of TOC on overwriteable media
|
|
|
|
|
|
|
|
Media which match the overwriteable usage model lack of a history of sessions
|
|
|
|
and tracks. libburn will not even hand out a burn_disc object for them and
|
|
|
|
always declare them blank. libisoburn checks for a valid ISO filesystem
|
|
|
|
header at LBA 0 and eventually declares them appendable.
|
|
|
|
Nevertheless one can only determine an upper limit of the size of the overall
|
|
|
|
image (by isoburn_get_min_start_byte()) but not a list of stored sessions
|
|
|
|
and their LBAs, as it is possible with true multi-session media.
|
|
|
|
|
|
|
|
The following wrappers add the capability to obtain a session and track TOC
|
|
|
|
from emulated multi-session images on overwriteables if the first session
|
|
|
|
was written by libisoburn-0.1.6 or later (i.e. with a header copy at LBA 32).
|
|
|
|
|
|
|
|
Be aware that the structs emitted by these isoburn calls are not compatible
|
|
|
|
with the libburn structs. I.e. you may use them only with isoburn_toc_*
|
|
|
|
calls.
|
|
|
|
isoburn_toc_disc needs to be freed after use. isoburn_toc_session and
|
|
|
|
isoburn_toc_track vanish together with their isoburn_toc_disc.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* Opaque handles to media, session, track */
|
|
|
|
struct isoburn_toc_disc;
|
|
|
|
struct isoburn_toc_session;
|
|
|
|
struct isoburn_toc_track;
|
|
|
|
|
|
|
|
|
|
|
|
/** Obtain a master handle for the table of content.
|
|
|
|
This handle governs allocated resources which have to be released by
|
|
|
|
isoburn_toc_disc_free() when no longer needed.
|
|
|
|
Wrapper for: burn_drive_get_disc()
|
|
|
|
@since 0.1.6
|
|
|
|
@param drive The drive with the media to inspect
|
|
|
|
@return NULL in case there is no content info, else it is a valid handle
|
|
|
|
*/
|
|
|
|
struct isoburn_toc_disc *isoburn_toc_drive_get_disc(struct burn_drive *d);
|
|
|
|
|
|
|
|
|
|
|
|
/** Tell the number of 2048 byte blocks covered by the table of content.
|
|
|
|
Wrapper for: burn_disc_get_sectors()
|
|
|
|
@since 0.1.6
|
|
|
|
@param disc The master handle of the media
|
|
|
|
@return number of blocks, <=0 indicates unknown or unreadable state
|
|
|
|
*/
|
|
|
|
int isoburn_toc_disc_get_sectors(struct isoburn_toc_disc *disc);
|
|
|
|
|
|
|
|
|
|
|
|
/** Get the array of session handles from the table of content.
|
|
|
|
Wrapper for: burn_disc_get_sessions()
|
|
|
|
@since 0.1.6
|
|
|
|
@param disc The master handle of the media
|
|
|
|
@param num returns the number of sessions in the array
|
|
|
|
@return the address of the array of session handles
|
|
|
|
*/
|
|
|
|
struct isoburn_toc_session **isoburn_toc_disc_get_sessions(
|
|
|
|
struct isoburn_toc_disc *disc, int *num);
|
|
|
|
|
|
|
|
|
|
|
|
/** Tell the number of 2048 byte blocks covered by a particular session.
|
|
|
|
Wrapper for: burn_session_get_sectors()
|
|
|
|
@since 0.1.6
|
|
|
|
@param s The session handle
|
|
|
|
@return number of blocks, <=0 indicates unknown or unreadable state
|
|
|
|
*/
|
|
|
|
int isoburn_toc_session_get_sectors(struct isoburn_toc_session *s);
|
|
|
|
|
|
|
|
|
|
|
|
/** Obtain a copy of the entry which describes the end of a particular session.
|
|
|
|
Wrapper for: burn_session_get_leadout_entry()
|
|
|
|
@since 0.1.6
|
|
|
|
@param s The session handle
|
|
|
|
@param entry A pointer to memory provided by the caller. It will be filled
|
|
|
|
with info according to struct burn_toc_entry as defined
|
|
|
|
in libburn.h
|
|
|
|
*/
|
|
|
|
void isoburn_toc_session_get_leadout_entry(struct isoburn_toc_session *s,
|
|
|
|
struct burn_toc_entry *entry);
|
|
|
|
|
|
|
|
|
|
|
|
/** Get the array of track handles from a particular session.
|
|
|
|
Wrapper for: burn_session_get_tracks()
|
|
|
|
@since 0.1.6
|
|
|
|
@param s The session handle
|
|
|
|
@param num returns the number of tracks in the array
|
|
|
|
@return the address of the array of track handles
|
|
|
|
*/
|
|
|
|
struct isoburn_toc_track **isoburn_toc_session_get_tracks(
|
|
|
|
struct isoburn_toc_session *s, int *num);
|
|
|
|
|
|
|
|
|
|
|
|
/** Obtain a copy of the entry which describes a particular itrack.
|
|
|
|
Wrapper for: burn_track_get_entry()
|
|
|
|
@since 0.1.6
|
|
|
|
@param s The track handle
|
|
|
|
@param entry A pointer to memory provided by the caller. It will be filled
|
|
|
|
with info according to struct burn_toc_entry as defined
|
|
|
|
in libburn.h
|
|
|
|
*/
|
|
|
|
void isoburn_toc_track_get_entry(struct isoburn_toc_track *t,
|
|
|
|
struct burn_toc_entry *entry);
|
|
|
|
|
|
|
|
|
|
|
|
/** Release the memory associated with a master handle of media.
|
|
|
|
The handle is invalid afterwards and may not be used any more.
|
|
|
|
Wrapper for: burn_disc_free()
|
|
|
|
@since 0.1.6
|
|
|
|
@param disc The master handle of the media
|
|
|
|
*/
|
|
|
|
void isoburn_toc_disc_free(struct isoburn_toc_disc *disc);
|
|
|
|
|
|
|
|
|
2008-05-07 21:43:25 +00:00
|
|
|
/** Try whether at the data at the given address look like a ISO 9660
|
|
|
|
image header and obtain its alleged size. Depending on the info mode
|
|
|
|
one other string of text information can be retrieved too.
|
|
|
|
@since 0.1.6
|
|
|
|
@param drive The drive with the media to inspect
|
|
|
|
@param lba The block number from where to read
|
|
|
|
@param image_blocks The number of 2048 bytes blocks
|
|
|
|
@param info Caller provided memory, enough to take eventual info reply
|
|
|
|
@param flag bit0-7: info return mode
|
|
|
|
0= do not return anything in info (do not even touch it)
|
|
|
|
1= return volume id (info needs 33 bytes)
|
|
|
|
@return 1 seems to be a valid ISO image , 0 format not recognized, <0 error
|
|
|
|
*/
|
|
|
|
int isoburn_read_iso_head(struct burn_drive *d, int lba,
|
|
|
|
int *image_blocks, char *info, int flag);
|
|
|
|
|
|
|
|
|
2008-01-29 13:00:46 +00:00
|
|
|
/* ----------------------------------------------------------------------- */
|
|
|
|
/*
|
|
|
|
|
|
|
|
Options for image reading.
|
|
|
|
|
|
|
|
An application shall create an option set object by isoburn_ropt_new(),
|
|
|
|
program it by isoburn_ropt_set_*(), use it with isoburn_read_image(),
|
|
|
|
and finally delete it by isoburn_ropt_destroy().
|
|
|
|
|
|
|
|
*/
|
|
|
|
/* ----------------------------------------------------------------------- */
|
2008-01-28 23:58:12 +00:00
|
|
|
|
2008-01-29 13:00:46 +00:00
|
|
|
struct isoburn_read_opts;
|
2008-01-28 23:58:12 +00:00
|
|
|
|
2008-01-29 13:00:46 +00:00
|
|
|
/** Produces a set of image read options, initialized with default values.
|
2008-02-14 08:44:29 +00:00
|
|
|
@since 0.1.0
|
2008-01-29 13:00:46 +00:00
|
|
|
@param o the newly created option set object
|
2008-02-14 08:44:29 +00:00
|
|
|
@param flag Bitfield for control purposes. Submit 0 for now.
|
2008-01-29 13:00:46 +00:00
|
|
|
@return 1=ok , <0 = failure
|
|
|
|
*/
|
|
|
|
int isoburn_ropt_new(struct isoburn_read_opts **o, int flag);
|
2008-01-10 15:20:57 +00:00
|
|
|
|
|
|
|
|
2008-01-29 13:00:46 +00:00
|
|
|
/** Deletes an option set which was created by isoburn_ropt_new().
|
2008-02-14 08:44:29 +00:00
|
|
|
@since 0.1.0
|
|
|
|
@param o The option set to work on
|
|
|
|
@param flag Bitfield for control purposes. Submit 0 for now.
|
2008-01-29 13:00:46 +00:00
|
|
|
@return 1= **o destroyed , 0= *o was already NULL (harmless)
|
|
|
|
*/
|
|
|
|
int isoburn_ropt_destroy(struct isoburn_read_opts **o, int flag);
|
|
|
|
|
|
|
|
|
|
|
|
/** Which existing ISO 9660 extensions in the image to read or not to read.
|
|
|
|
Whether to read the content of an existing image at all.
|
|
|
|
The bits can be combined by | resp. inquired by &.
|
2008-02-14 08:44:29 +00:00
|
|
|
@since 0.1.0
|
2008-01-29 13:00:46 +00:00
|
|
|
@param ext Bitfield:
|
|
|
|
bit0= norock
|
|
|
|
Do not read Rock Ridge extensions
|
|
|
|
bit1= nojoliet
|
|
|
|
Do not read Joliet extensions
|
|
|
|
bit2= noiso1999
|
|
|
|
Do not read ISO 9660:1999 enhanced tree
|
|
|
|
bit3= preferjoliet
|
|
|
|
When both Joliet and RR extensions are present, the RR
|
|
|
|
tree is used. If you prefer using Joliet, set this to 1.
|
|
|
|
bit4= pretend_blank
|
|
|
|
Always create empty image.Ignore any image on input drive.
|
2008-02-14 08:44:29 +00:00
|
|
|
@return 1 success, <=0 failure
|
2008-01-29 13:00:46 +00:00
|
|
|
*/
|
|
|
|
#define isoburn_ropt_norock 1
|
|
|
|
#define isoburn_ropt_nojoliet 2
|
|
|
|
#define isoburn_ropt_noiso1999 4
|
|
|
|
#define isoburn_ropt_preferjoliet 8
|
|
|
|
#define isoburn_ropt_pretend_blank 16
|
|
|
|
int isoburn_ropt_set_extensions(struct isoburn_read_opts *o, int ext);
|
|
|
|
int isoburn_ropt_get_extensions(struct isoburn_read_opts *o, int *ext);
|
|
|
|
|
|
|
|
|
|
|
|
/** Default attributes to use if no RockRidge extension gets loaded.
|
2008-02-14 08:44:29 +00:00
|
|
|
@since 0.1.0
|
|
|
|
@param o The option set to work on
|
2008-01-29 13:00:46 +00:00
|
|
|
@param uid user id number (see /etc/passwd)
|
|
|
|
@param gid group id number (see /etc/group)
|
|
|
|
@param mode permissions (not file type) as of man 2 stat.
|
2008-01-31 15:22:23 +00:00
|
|
|
With directories, r-permissions will automatically imply
|
|
|
|
x-permissions. See isoburn_ropt_set_default_dirperms() below.
|
2008-02-14 08:44:29 +00:00
|
|
|
@return 1 success, <=0 failure
|
2008-01-29 13:00:46 +00:00
|
|
|
*/
|
|
|
|
int isoburn_ropt_set_default_perms(struct isoburn_read_opts *o,
|
|
|
|
uid_t uid, gid_t gid, mode_t mode);
|
|
|
|
int isoburn_ropt_get_default_perms(struct isoburn_read_opts *o,
|
|
|
|
uid_t *uid, gid_t *gid, mode_t *mode);
|
2008-01-19 09:05:13 +00:00
|
|
|
|
2008-01-31 15:22:23 +00:00
|
|
|
/** Default attributes to use on directories if no RockRidge extension
|
|
|
|
gets loaded.
|
|
|
|
Above call isoburn_ropt_set_default_perms() automatically adds
|
|
|
|
x-permissions to r-permissions for directories. This call here may
|
|
|
|
be done afterwards to set independend permissions for directories,
|
|
|
|
especially to override the automatically added x-permissions.
|
2008-02-14 08:44:29 +00:00
|
|
|
@since 0.1.0
|
|
|
|
@param o The option set to work on
|
|
|
|
@param mode permissions (not file type) as of man 2 stat.
|
|
|
|
@return 1 success, <=0 failure
|
2008-01-31 15:22:23 +00:00
|
|
|
*/
|
|
|
|
int isoburn_ropt_set_default_dirperms(struct isoburn_read_opts *o,
|
|
|
|
mode_t mode);
|
|
|
|
int isoburn_ropt_get_default_dirperms(struct isoburn_read_opts *o,
|
|
|
|
mode_t *mode);
|
|
|
|
|
|
|
|
|
2008-01-19 09:05:13 +00:00
|
|
|
|
2008-01-31 15:22:23 +00:00
|
|
|
/** Set the character set for reading RR file names from ISO images.
|
2008-02-14 08:44:29 +00:00
|
|
|
@since 0.1.0
|
|
|
|
@param o The option set to work on
|
2008-01-31 15:22:23 +00:00
|
|
|
@param input_charset Set this to NULL to use the default locale charset.
|
|
|
|
For selecting a particular character set, submit its
|
|
|
|
name, e.g. as listed by program iconv -l.
|
|
|
|
Example: "UTF-8".
|
2008-02-14 08:44:29 +00:00
|
|
|
@return 1 success, <=0 failure
|
2008-01-29 13:00:46 +00:00
|
|
|
*/
|
|
|
|
int isoburn_ropt_set_input_charset(struct isoburn_read_opts *o,
|
|
|
|
char *input_charset);
|
|
|
|
int isoburn_ropt_get_input_charset(struct isoburn_read_opts *o,
|
|
|
|
char **input_charset);
|
|
|
|
|
|
|
|
|
|
|
|
/** After calling function isoburn_read_image() there are informations
|
|
|
|
available in the option set.
|
|
|
|
This info can be obtained as bits in parameter has_what. Like:
|
|
|
|
joliet_available = (has_what & isoburn_ropt_has_joliet);
|
2008-02-14 08:44:29 +00:00
|
|
|
@since 0.1.0
|
|
|
|
@param o The option set to work on
|
2008-01-29 13:00:46 +00:00
|
|
|
@param size Number of image data blocks, 2048 bytes each.
|
|
|
|
@param has_what Bitfield:
|
|
|
|
bit0= has_rockridge
|
|
|
|
RockRidge extension info is available (POSIX filesystem)
|
|
|
|
bit1= has_joliet
|
|
|
|
Joliet extension info is available (suitable for MS-Windows)
|
|
|
|
bit2= has_iso1999
|
2008-01-29 21:06:46 +00:00
|
|
|
ISO version 2 Enhanced Volume Descriptor is available.
|
|
|
|
This is rather exotic.
|
2008-01-29 13:00:46 +00:00
|
|
|
bit3= has_el_torito
|
|
|
|
El-Torito boot record is present
|
2008-02-14 08:44:29 +00:00
|
|
|
@return 1 success, <=0 failure
|
2008-01-29 13:00:46 +00:00
|
|
|
*/
|
|
|
|
#define isoburn_ropt_has_rockridge 1
|
|
|
|
#define isoburn_ropt_has_joliet 2
|
|
|
|
#define isoburn_ropt_has_iso1999 4
|
|
|
|
#define isoburn_ropt_has_el_torito 8
|
|
|
|
int isoburn_ropt_get_size_what(struct isoburn_read_opts *o,
|
|
|
|
uint32_t *size, int *has_what);
|
2008-01-19 09:05:13 +00:00
|
|
|
|
2008-01-10 15:20:57 +00:00
|
|
|
|
2008-01-29 13:00:46 +00:00
|
|
|
/* ----------------------------------------------------------------------- */
|
|
|
|
/* End of Options for image reading */
|
|
|
|
/* ----------------------------------------------------------------------- */
|
2008-01-19 09:05:13 +00:00
|
|
|
|
2008-01-28 23:58:12 +00:00
|
|
|
/* ----------------------------------------------------------------------- */
|
|
|
|
/*
|
2008-01-19 09:05:13 +00:00
|
|
|
|
2008-01-28 23:58:12 +00:00
|
|
|
Options for image generation by libisofs and image transport to libburn.
|
2008-01-19 09:05:13 +00:00
|
|
|
|
2008-01-29 13:00:46 +00:00
|
|
|
An application shall create an option set by isoburn_igopt_new(),
|
2008-01-28 23:58:12 +00:00
|
|
|
program it by isoburn_igopt_set_*(), use it with either
|
|
|
|
isoburn_prepare_new_image() or isoburn_prepare_disc(), and finally delete
|
|
|
|
it by isoburn_igopt_destroy().
|
2008-01-19 09:05:13 +00:00
|
|
|
|
2008-01-28 23:58:12 +00:00
|
|
|
*/
|
|
|
|
/* ----------------------------------------------------------------------- */
|
2008-01-19 09:05:13 +00:00
|
|
|
|
2008-01-28 23:58:12 +00:00
|
|
|
struct isoburn_imgen_opts;
|
2008-01-19 09:05:13 +00:00
|
|
|
|
2008-01-28 23:58:12 +00:00
|
|
|
/** Produces a set of generation and transfer options, initialized with default
|
|
|
|
values.
|
2008-02-14 08:44:29 +00:00
|
|
|
@since 0.1.0
|
2008-01-28 23:58:12 +00:00
|
|
|
@param o the newly created option set object
|
2008-02-14 08:44:29 +00:00
|
|
|
@param flag Bitfield for control purposes. Submit 0 for now.
|
2008-01-28 23:58:12 +00:00
|
|
|
@return 1=ok , <0 = failure
|
|
|
|
*/
|
|
|
|
int isoburn_igopt_new(struct isoburn_imgen_opts **o, int flag);
|
2008-01-19 09:05:13 +00:00
|
|
|
|
|
|
|
|
2008-01-28 23:58:12 +00:00
|
|
|
/** Deletes an option set which was created by isoburn_igopt_new().
|
2008-02-14 08:44:29 +00:00
|
|
|
@since 0.1.0
|
|
|
|
@param o The option set to give up
|
|
|
|
@param flag Bitfield for control purposes. Submit 0 for now.
|
2008-01-29 13:00:46 +00:00
|
|
|
@return 1= **o destroyed , 0= *o was already NULL (harmless)
|
2008-01-28 23:58:12 +00:00
|
|
|
*/
|
|
|
|
int isoburn_igopt_destroy(struct isoburn_imgen_opts **o, int flag);
|
2008-01-19 09:05:13 +00:00
|
|
|
|
2008-01-10 15:20:57 +00:00
|
|
|
|
2008-01-28 23:58:12 +00:00
|
|
|
/** ISO level to write at.
|
2008-02-14 08:44:29 +00:00
|
|
|
@since 0.1.0
|
|
|
|
@param o The option set to work on
|
2008-01-31 15:22:23 +00:00
|
|
|
@param level is a term of the ISO 9660 standard. It should be one of:
|
|
|
|
1= filenames restricted to form 8.3
|
|
|
|
2= filenames allowed up to 31 characters
|
2008-02-14 08:44:29 +00:00
|
|
|
@return 1 success, <=0 failure
|
2008-01-28 23:58:12 +00:00
|
|
|
*/
|
|
|
|
int isoburn_igopt_set_level(struct isoburn_imgen_opts *o, int level);
|
|
|
|
int isoburn_igopt_get_level(struct isoburn_imgen_opts *o, int *level);
|
2008-01-10 15:20:57 +00:00
|
|
|
|
|
|
|
|
2008-01-28 23:58:12 +00:00
|
|
|
/** Which extensions to support.
|
2008-02-14 08:44:29 +00:00
|
|
|
@since 0.1.0
|
|
|
|
@param o The option set to work on
|
2008-01-29 21:06:46 +00:00
|
|
|
@param ext Bitfield:
|
2008-01-31 15:22:23 +00:00
|
|
|
bit0= rockridge
|
|
|
|
Rock Ridge extensions add POSIX file attributes like
|
|
|
|
owner, group, access permissions, long filenames. Very
|
|
|
|
advisable if the designed audience has Unix style systems.
|
|
|
|
bit1= joliet
|
|
|
|
Longer filenames for Windows systems.
|
|
|
|
Weaker than RockRidge, but also readable with Linux.
|
|
|
|
bit2= iso1999
|
|
|
|
This is rather exotic. Better do not surprise the readers.
|
2008-02-14 08:44:29 +00:00
|
|
|
@return 1 success, <=0 failure
|
2008-01-28 23:58:12 +00:00
|
|
|
*/
|
|
|
|
#define isoburn_igopt_rockridge 1
|
|
|
|
#define isoburn_igopt_joliet 2
|
|
|
|
#define isoburn_igopt_iso1999 4
|
|
|
|
int isoburn_igopt_set_extensions(struct isoburn_imgen_opts *o, int ext);
|
|
|
|
int isoburn_igopt_get_extensions(struct isoburn_imgen_opts *o, int *ext);
|
|
|
|
|
|
|
|
/** Relaxed constraints. Setting any of the bits to 1 break the specifications,
|
|
|
|
but it is supposed to work on most moderns systems. Use with caution.
|
2008-02-14 08:44:29 +00:00
|
|
|
@since 0.1.0
|
|
|
|
@param o The option set to work on
|
2008-01-28 23:58:12 +00:00
|
|
|
@param relax Bitfield:
|
|
|
|
bit0= omit_version_numbers
|
|
|
|
Omit the version number (";1") at the end of the
|
|
|
|
ISO-9660 identifiers. Version numbers are usually
|
|
|
|
not used.
|
|
|
|
bit1= allow_deep_paths
|
|
|
|
Allow ISO-9660 directory hierarchy to be deeper
|
|
|
|
than 8 levels.
|
|
|
|
bit2= allow_longer_paths
|
|
|
|
Allow path in the ISO-9660 tree to have more than
|
|
|
|
255 characters.
|
|
|
|
bit3= max_37_char_filenames
|
|
|
|
Allow a single file or directory hierarchy to have
|
|
|
|
up to 37 characters. This is larger than the 31
|
|
|
|
characters allowed by ISO level 2, and the extra space
|
|
|
|
is taken from the version number, so this also forces
|
|
|
|
omit_version_numbers.
|
|
|
|
bit4= no_force_dots
|
|
|
|
ISO-9660 forces filenames to have a ".", that separates
|
|
|
|
file name from extension. libisofs adds it if original
|
|
|
|
filename has none. Set this to 1 to prevent this
|
|
|
|
behavior.
|
|
|
|
bit5= allow_lowercase
|
|
|
|
Allow lowercase characters in ISO-9660 filenames.
|
|
|
|
By default, only uppercase characters, numbers and
|
|
|
|
a few other characters are allowed.
|
|
|
|
bit6= allow_full_ascii
|
|
|
|
Allow all ASCII characters to be appear on an ISO-9660
|
|
|
|
filename. Note * that "/" and "\0" characters are never
|
|
|
|
allowed, even in RR names.
|
|
|
|
bit7= joliet_longer_paths
|
|
|
|
Allow paths in the Joliet tree to have more than
|
|
|
|
240 characters.
|
2008-02-14 08:44:29 +00:00
|
|
|
@return 1 success, <=0 failure
|
2008-01-28 23:58:12 +00:00
|
|
|
*/
|
|
|
|
#define isoburn_igopt_omit_version_numbers 1
|
|
|
|
#define isoburn_igopt_allow_deep_paths 2
|
|
|
|
#define isoburn_igopt_allow_longer_paths 4
|
|
|
|
#define isoburn_igopt_max_37_char_filenames 8
|
|
|
|
#define isoburn_igopt_no_force_dots 16
|
|
|
|
#define isoburn_igopt_allow_lowercase 32
|
|
|
|
#define isoburn_igopt_allow_full_ascii 64
|
|
|
|
#define isoburn_igopt_joliet_longer_paths 128
|
|
|
|
int isoburn_igopt_set_relaxed(struct isoburn_imgen_opts *o, int relax);
|
|
|
|
int isoburn_igopt_get_relaxed(struct isoburn_imgen_opts *o, int *relax);
|
|
|
|
|
|
|
|
|
|
|
|
/** Whether and how files should be sorted.
|
2008-02-14 08:44:29 +00:00
|
|
|
@since 0.1.0
|
|
|
|
@param o The option set to work on
|
2008-01-28 23:58:12 +00:00
|
|
|
@param value Bitfield: bit0= sort_files_by_weight
|
|
|
|
files should be sorted based on their weight.
|
2008-01-31 15:22:23 +00:00
|
|
|
Weight is attributed to files in the image
|
|
|
|
by libisofs call iso_node_set_sort_weight().
|
2008-02-14 08:44:29 +00:00
|
|
|
@return 1 success, <=0 failure
|
2008-01-28 23:58:12 +00:00
|
|
|
*/
|
|
|
|
#define isoburn_igopt_sort_files_by_weight 1
|
|
|
|
int isoburn_igopt_set_sort_files(struct isoburn_imgen_opts *o, int value);
|
|
|
|
int isoburn_igopt_get_sort_files(struct isoburn_imgen_opts *o, int *value);
|
|
|
|
|
|
|
|
|
|
|
|
/** Set the override values for files and directory permissions.
|
|
|
|
The parameters replace_* these take one of three values: 0, 1 or 2.
|
|
|
|
If 0, the corresponding attribute will be kept as set in the IsoNode
|
|
|
|
at the time of image generation.
|
|
|
|
If set to 1, the corresponding attrib. will be changed by a default
|
|
|
|
suitable value.
|
|
|
|
With value 2, the attrib. will be changed with the value specified
|
|
|
|
in the corresponding *_mode options. Note that only the permissions
|
|
|
|
are set, the file type remains unchanged.
|
2008-02-14 08:44:29 +00:00
|
|
|
@since 0.1.0< |