2007-10-12 20:39:29 +00:00
|
|
|
|
2010-05-21 13:37:25 +00:00
|
|
|
/* xorriso - libisoburn higher level API which creates, loads, manipulates
|
|
|
|
and burns ISO 9660 filesystem images.
|
2007-10-12 20:39:29 +00:00
|
|
|
|
2012-01-14 14:45:39 +00:00
|
|
|
Copyright 2007-2012 Thomas Schmitt, <scdbackup@gmx.net>
|
2007-10-12 20:39:29 +00:00
|
|
|
|
2010-01-25 15:02:59 +00:00
|
|
|
Provided under GPL version 2 or later.
|
2007-10-12 20:39:29 +00:00
|
|
|
|
2010-05-21 13:37:25 +00:00
|
|
|
This file contains the public API of xorriso which covers all of its
|
|
|
|
operations.
|
|
|
|
|
|
|
|
An example of its usage is xorriso_main.c which checks version compatibility,
|
|
|
|
creates a xorriso object, initializes the libraries, and runs the command
|
|
|
|
interpreters of the API to constitute the command line oriented batch and
|
|
|
|
dialog tool xorriso.
|
|
|
|
|
|
|
|
Alternatively to command interpreters it is possible to run all options of
|
2012-03-05 14:53:27 +00:00
|
|
|
xorriso directly via the calls of the "Command API".
|
2010-05-21 13:37:25 +00:00
|
|
|
The "Problem Status and Message API" shall then be used to obtain the
|
|
|
|
text output of the options.
|
|
|
|
|
|
|
|
Mandatory calls are:
|
|
|
|
Xorriso_new(), Xorriso_startup_libraries(), Xorriso_destroy()
|
|
|
|
|
2010-06-14 09:33:43 +00:00
|
|
|
This architecture is fully public since version 0.5.8. From then on, new
|
|
|
|
features get marked by
|
|
|
|
@since major.minor.micro
|
|
|
|
If this mark is missing, then the feature was present before release 0.5.8.
|
|
|
|
|
|
|
|
|
2010-05-21 13:37:25 +00:00
|
|
|
There is a lower level of API which consists of libisofs.h, libburn.h and
|
|
|
|
libisoburn.h. One should not mix those calls with the ones of xorriso.h .
|
2007-10-12 20:39:29 +00:00
|
|
|
*/
|
|
|
|
|
2010-07-06 11:45:45 +00:00
|
|
|
/* Important: If you add a public API function then add its name to file
|
|
|
|
libisoburn/libisoburn.ver
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
2007-10-12 20:39:29 +00:00
|
|
|
#ifndef Xorriso_includeD
|
|
|
|
#define Xorriso_includeD yes
|
|
|
|
|
|
|
|
/** Opaque handle of the xorriso runtime context */
|
|
|
|
struct XorrisO;
|
|
|
|
|
|
|
|
|
2009-06-23 13:31:46 +00:00
|
|
|
|
2010-05-16 11:32:00 +00:00
|
|
|
/* This may be changed to Xorriso_GNU_xorrisO in order to create GNU xorriso
|
|
|
|
under GPLv3+ derived from above GPLv2+.
|
|
|
|
*/
|
|
|
|
#define Xorriso_libburnia_xorrisO yes
|
|
|
|
|
|
|
|
|
2008-01-15 17:45:08 +00:00
|
|
|
/* --------------------- Fundamental Management ------------------- */
|
|
|
|
|
2009-06-23 12:31:23 +00:00
|
|
|
|
2010-05-21 13:37:25 +00:00
|
|
|
/** These three release version numbers tell the revision of this header file
|
|
|
|
and of the API which it describes. They shall be memorized by applications
|
|
|
|
at build time.
|
|
|
|
@since 0.5.8
|
|
|
|
*/
|
2011-01-17 09:25:21 +00:00
|
|
|
#define Xorriso_header_version_majoR 1
|
2012-01-27 16:00:06 +00:00
|
|
|
#define Xorriso_header_version_minoR 2
|
|
|
|
#define Xorriso_header_version_micrO 1
|
2010-05-21 13:37:25 +00:00
|
|
|
|
|
|
|
|
2011-09-27 13:36:10 +00:00
|
|
|
/** If needed: Something like ".pl01" to indicate a bug fix. Normally empty.
|
2010-05-21 13:37:25 +00:00
|
|
|
@since 0.5.8
|
|
|
|
*/
|
|
|
|
#define Xorriso_program_patch_leveL ""
|
|
|
|
|
|
|
|
|
|
|
|
/** Obtain the three release version numbers of the library. These are the
|
|
|
|
numbers encountered by the application when linking with libisoburn,
|
|
|
|
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 Xorriso__is_compatible().
|
|
|
|
@since 0.5.8
|
|
|
|
@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:
|
|
|
|
|
|
|
|
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.
|
|
|
|
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.
|
|
|
|
|
|
|
|
Odd numbers indicate that API upgrades are in progress.
|
|
|
|
I.e. new features might be already present or they might
|
|
|
|
be still missing. Newly introduced features may be changed
|
|
|
|
incompatibly or even be revoked before release of a pare
|
|
|
|
version.
|
|
|
|
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.
|
|
|
|
|
|
|
|
@return 1 success, <=0 might in future become an error indication
|
|
|
|
*/
|
|
|
|
void Xorriso__version(int *major, int *minor, int *micro);
|
|
|
|
|
|
|
|
|
|
|
|
/** Check whether all features of header file xorriso.h from the given
|
|
|
|
major.minor.micro revision triple can be delivered by the library version
|
|
|
|
which is performing this call.
|
|
|
|
if (! Xorriso__is_compatible(Xorriso_header_version_majoR,
|
|
|
|
Xorriso_header_version_minoR,
|
|
|
|
Xorriso_header_version_micrO, 0))
|
|
|
|
...refuse to start the program with this dynamic library version...
|
|
|
|
@since 0.5.8
|
|
|
|
@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
|
2010-09-19 13:53:42 +00:00
|
|
|
itself to an earlier API version or must not use this library
|
2010-05-21 13:37:25 +00:00
|
|
|
at all.
|
2009-06-23 12:31:23 +00:00
|
|
|
*/
|
2010-05-21 13:37:25 +00:00
|
|
|
int Xorriso__is_compatible(int major, int minor, int micro, int flag);
|
2009-06-23 12:31:23 +00:00
|
|
|
|
|
|
|
|
2010-02-22 19:54:48 +00:00
|
|
|
/* Get the patch level text (e.g. "" or ".pl01") of the program code.
|
|
|
|
@param flag unused yet, submit 0
|
|
|
|
@return readonly character string
|
|
|
|
*/
|
|
|
|
char *Xorriso__get_patch_level_text(int flag);
|
|
|
|
|
|
|
|
|
2010-03-09 06:52:24 +00:00
|
|
|
/* Choose how Xorriso_startup_libraries() and the XorrisO object shall
|
|
|
|
prepare for eventual signals.
|
|
|
|
@param behavior Default is behavior 1.
|
|
|
|
0= no own signal handling. The main application has to do
|
|
|
|
that. Do not start burn runs without any handling !
|
|
|
|
1= use libburn signal handler. Most time with action
|
|
|
|
0. During writing, formatting, blanking: 0x30.
|
|
|
|
Only usable with a single xorriso object.
|
2011-04-23 15:23:35 +00:00
|
|
|
2= Enable system default reaction on all signals
|
|
|
|
@since 1.0.9
|
|
|
|
3= Try to ignore nearly all signals
|
|
|
|
@since 1.0.9
|
2010-03-09 06:52:24 +00:00
|
|
|
@param flag unused yet, submit 0
|
|
|
|
@return <= 0 is error, >0 is success
|
|
|
|
*/
|
|
|
|
int Xorriso__preset_signal_behavior(int behavior, int flag);
|
|
|
|
|
|
|
|
|
2009-06-23 12:31:23 +00:00
|
|
|
/* Mandatory call:
|
|
|
|
Create a new xorriso object and tell it the program name to be used
|
2008-07-07 10:29:38 +00:00
|
|
|
with messages and for decision of special behavior.
|
|
|
|
@param xorriso returns the newly created XorrisO object
|
|
|
|
@param progname typically argv[0] of main(). Some leafnames of the progname
|
|
|
|
path have special meaning and trigger special behavior:
|
|
|
|
"osirrox" allows image-to-disk copying: -osirrox "on"
|
2009-09-16 16:23:21 +00:00
|
|
|
"xorrisofs" activates -as "mkisofs" emulation from start
|
2008-07-07 10:29:38 +00:00
|
|
|
"genisofs" alias of "xorrisofs"
|
|
|
|
"mkisofs" alias of "xorrisofs"
|
|
|
|
"genisoimage" alias of "xorrisofs"
|
2009-09-16 16:23:21 +00:00
|
|
|
"xorrecord" activates -as "cdrecord" emulation from start
|
|
|
|
"cdrecord" alias of "xorrecord"
|
|
|
|
"wodim" alias of "xorrecord"
|
|
|
|
"cdrskin" alias of "xorrecord"
|
2009-06-23 12:31:23 +00:00
|
|
|
@param flag unused yet, submit 0
|
2008-07-07 10:29:38 +00:00
|
|
|
@return >0 success , <=0 failure, no object created
|
2008-01-15 17:45:08 +00:00
|
|
|
*/
|
|
|
|
int Xorriso_new(struct XorrisO ** xorriso, char *progname, int flag);
|
|
|
|
|
|
|
|
|
2010-06-13 11:04:08 +00:00
|
|
|
/* Note: Between Xorriso_new() and the next call Xorriso_startup_libraries()
|
|
|
|
there may be called the special command interpreter
|
|
|
|
Xorriso_prescan_args().
|
|
|
|
The other command interpreters may be used only after
|
|
|
|
Xorriso_startup_libraries(). The same restriction applies to the
|
2012-03-05 14:53:27 +00:00
|
|
|
calls of the Command API further below.
|
2010-06-13 11:04:08 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
/* Mandatory call:
|
|
|
|
It has to be made before calling any function listed below this point.
|
|
|
|
Only exception is the special command interpreter Xorriso_prescan_args().
|
|
|
|
|
|
|
|
Make global library initializations.
|
|
|
|
This must be done with the first xorriso object that gets created and
|
|
|
|
with the first xorriso object that gets created after Xorriso_destroy(,1).
|
|
|
|
@param xorriso The context object.
|
|
|
|
@param flag unused yet, submit 0
|
|
|
|
@return <=0 error , >0 success
|
|
|
|
*/
|
|
|
|
int Xorriso_startup_libraries(struct XorrisO *xorriso, int flag);
|
|
|
|
|
|
|
|
|
|
|
|
/* Note: After library startup, you may run Command Interpreters or call
|
2012-03-05 14:53:27 +00:00
|
|
|
functions from the Command API.
|
2010-06-13 11:04:08 +00:00
|
|
|
|
|
|
|
Wenn all desired activities are done, you may check whether there are
|
2010-09-19 13:53:42 +00:00
|
|
|
uncommited changes pending, compute an exit value, destroy the XorrisO
|
2010-06-13 11:04:08 +00:00
|
|
|
object, and exit your program.
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
/* Inquire whether option -commit would make sense.
|
|
|
|
@param xorriso The context object to inquire.
|
2010-12-02 06:32:31 +00:00
|
|
|
@param flag @since 0.6.6
|
|
|
|
bit0= do not return 1 if -as mkisofs -print-size was
|
|
|
|
performed on the current image.
|
2010-06-13 11:04:08 +00:00
|
|
|
@return 0= -commit would have nothing to do
|
|
|
|
1= a new image session would emerge at -commit
|
|
|
|
*/
|
|
|
|
int Xorriso_change_is_pending(struct XorrisO *xorriso, int flag);
|
|
|
|
|
|
|
|
|
|
|
|
/* Compute the exit value from the recorded maximum event severity.
|
|
|
|
@param xorriso The context object to inquire.
|
|
|
|
@param flag unused yet, submit 0
|
|
|
|
@return The computed exit value
|
|
|
|
*/
|
|
|
|
int Xorriso_make_return_value(struct XorrisO *xorriso, int flag);
|
|
|
|
|
|
|
|
|
|
|
|
/* Mandatory call:
|
|
|
|
Destroy xorriso object when it is no longer needed.
|
|
|
|
@param xorriso The context object to destroy. *xorriso will become NULL.
|
|
|
|
@param flag bit0= Perform global library shutdown.
|
|
|
|
Use only with last xorriso object to be destroyed.
|
|
|
|
@return <=0 error, >0 success
|
|
|
|
*/
|
|
|
|
int Xorriso_destroy(struct XorrisO **xorriso, int flag);
|
|
|
|
|
|
|
|
|
|
|
|
/* --------------------- Command Interpreters ------------------- */
|
|
|
|
|
|
|
|
|
2011-06-17 14:39:24 +00:00
|
|
|
/* This special interpreter may be called between Xorriso_new() and
|
2010-06-13 11:04:08 +00:00
|
|
|
Xorriso_startup_libraries(). It interprets certain commands which shall
|
|
|
|
get into effect before the libraries get initialized:
|
2011-05-02 21:13:37 +00:00
|
|
|
-abort_on , -report_about , -return_with , -list_delimiter ,
|
|
|
|
-scsi_log , -signal_handling
|
2012-01-31 13:04:28 +00:00
|
|
|
This is the only occasion where command -x has an effect:
|
|
|
|
-x
|
2009-06-23 12:31:23 +00:00
|
|
|
Some commands get executed only if they are the only command in argv:
|
2011-11-21 08:25:18 +00:00
|
|
|
-prog_help , -help
|
|
|
|
The following is recognized only if it is the first of all arguments:
|
|
|
|
-no_rc
|
|
|
|
Some get examined for the need to redirect stdout messages:
|
2009-06-23 12:31:23 +00:00
|
|
|
-dev , -outdev , -indev , -as
|
2011-05-16 13:43:16 +00:00
|
|
|
Commands -list_delimiter and -add_plainly get into effect during this
|
|
|
|
call. But their setting at begin of the call gets restored before the
|
|
|
|
call returns.
|
2009-06-23 12:31:23 +00:00
|
|
|
@param xorriso The context object in which to perform the commands.
|
|
|
|
@param argc Number of arguments.
|
|
|
|
@param argv The arguments. argv[0] contains the program name.
|
|
|
|
argv[1] to argv[argc-1] contain commands and parameters.
|
|
|
|
@param idx Argument cursor. When this function is called, *idx must
|
2011-05-02 21:13:37 +00:00
|
|
|
be at least 1, argv[*idx] must be a command.
|
2009-06-23 12:31:23 +00:00
|
|
|
*idx will iterate over commands and parameters until this
|
|
|
|
function aborts or until argc is reached.
|
|
|
|
@param flag bit0= do not interpret argv[1]
|
2011-05-17 15:16:56 +00:00
|
|
|
bit1= produce FAILURE events on unknown commands
|
|
|
|
@since 1.1.0
|
2009-06-23 12:31:23 +00:00
|
|
|
@return <0 error
|
|
|
|
0 end program
|
|
|
|
1 ok, go on
|
|
|
|
*/
|
|
|
|
int Xorriso_prescan_args(struct XorrisO *xorriso, int argc, char **argv,
|
|
|
|
int flag);
|
|
|
|
|
|
|
|
|
|
|
|
/* Read and interpret commands from eventual startup files as listed in
|
|
|
|
man xorriso.
|
|
|
|
@param xorriso The context object in which to perform the commands.
|
|
|
|
@param flag unused yet, submit 0
|
|
|
|
@return <=0 = error
|
|
|
|
1 = success
|
|
|
|
3 = end program run (e.g. because command -end was encountered)
|
|
|
|
*/
|
|
|
|
int Xorriso_read_rc(struct XorrisO *xorriso, int flag);
|
|
|
|
|
|
|
|
|
2011-06-17 14:39:24 +00:00
|
|
|
/* Check whether program arguments shall be backslash decoded. If so, then
|
2009-06-23 12:31:23 +00:00
|
|
|
replace *argv by a new argument vector. The old one will not be freed
|
|
|
|
by this call. If it is dynamic memory then you need to keep a copy of
|
|
|
|
the pointer and free it yourself after this call.
|
|
|
|
@param xorriso The context object
|
|
|
|
@param argc Number of arguments.
|
|
|
|
@param argv The arguments. (*argv)[0] contains the program name.
|
|
|
|
(*argv)[1] to (*argv)[argc-1] contain commands and parameters
|
2009-09-16 16:23:21 +00:00
|
|
|
If argv after the call differs from argv before the call,
|
|
|
|
then one should dispose it later by:
|
|
|
|
for(i= 0; i < argc; i++)
|
|
|
|
if(argv[i] != NULL)
|
|
|
|
free(argv[i]);
|
|
|
|
free(argv);
|
2009-06-23 12:31:23 +00:00
|
|
|
@param flag unused yet, submit 0
|
|
|
|
@return <= 0 error , > 0 success
|
|
|
|
*/
|
|
|
|
int Xorriso_program_arg_bsl(struct XorrisO *xorriso, int argc, char ***argv,
|
|
|
|
int flag);
|
|
|
|
|
|
|
|
|
2009-06-23 06:57:34 +00:00
|
|
|
/* Interpret argv as xorriso command options and their parameters.
|
2009-06-23 12:31:23 +00:00
|
|
|
(An alternative is to call functions of the options API directly and to
|
2012-03-05 14:53:27 +00:00
|
|
|
perform own error status evaluation. See below: Command API.)
|
2009-06-23 12:31:23 +00:00
|
|
|
After the first command and its parameters there may be more commands and
|
|
|
|
parameters. All parameters must be given in the same call as their command.
|
2012-01-31 13:04:28 +00:00
|
|
|
@since 1.2.2:
|
|
|
|
Commands may get arranged in a sequence that is most likely to make sense.
|
|
|
|
E.g. image loading settings before drive aquiration, then commands fori
|
|
|
|
adding files, then settings for writing, then writing.
|
|
|
|
This feature may be enabled by command "-x" in Xorriso_prescan_args()
|
|
|
|
or by parameter flag of this call.
|
2009-06-23 06:57:34 +00:00
|
|
|
@param xorriso The context object in which to perform the commands.
|
|
|
|
@param argc Number of arguments.
|
|
|
|
@param argv The arguments. argv[0] contains the program name.
|
|
|
|
argv[1] to argv[argc-1] contain commands and parameters.
|
|
|
|
@param idx Argument cursor. When this function is called, *idx must
|
2009-06-23 12:31:23 +00:00
|
|
|
be at least 1, argv[*idx] must be a command.
|
2009-06-23 06:57:34 +00:00
|
|
|
*idx will iterate over commands and parameters until this
|
2012-01-31 13:04:28 +00:00
|
|
|
function aborts, or until argc is reached, or only once if
|
|
|
|
flag bit2 is set.
|
2010-09-19 13:53:42 +00:00
|
|
|
@param flag bit0= reserved. Indicates recursion. Submit 0.
|
|
|
|
bit1= Indicates that these are the main() program start
|
2012-01-31 13:04:28 +00:00
|
|
|
arguments. This enables their use with emulations
|
|
|
|
which where set with Xorriso_new(), or argument
|
|
|
|
arranging.
|
|
|
|
bit2= Only execute the one command argv[*idx] and advance
|
|
|
|
*idx to the next command if sucessful. Then return.
|
|
|
|
This prevents any argument arranging.
|
|
|
|
@since 1.2.2
|
|
|
|
bit3= With bit1 and not bit2:
|
|
|
|
Enable argument arranging as with
|
|
|
|
Xorriso_prescan_args() and command "-x".
|
|
|
|
@since 1.2.2
|
|
|
|
bit4= With bit1:
|
|
|
|
Surely disable argument arranging.
|
|
|
|
@since 1.2.2
|
2009-06-23 06:57:34 +00:00
|
|
|
@return <=0 = error
|
|
|
|
1 = success
|
|
|
|
2 = problem event ignored
|
|
|
|
3 = end program run (e.g. because command -end was encountered)
|
|
|
|
*/
|
|
|
|
int Xorriso_interpreter(struct XorrisO *xorriso,
|
|
|
|
int argc, char **argv, int *idx, int flag);
|
|
|
|
|
|
|
|
|
|
|
|
/* Parse a command line into words and use them as argv for a call of
|
|
|
|
Xorriso_interpreter(). Put out some info lines about the outcome.
|
|
|
|
@param xorriso The context object in which to perform the commands.
|
|
|
|
@param line A text of one or more words according to man xorriso
|
|
|
|
paragraph "Command processing" up to and including
|
|
|
|
"Backslash Interpretation".
|
|
|
|
@param flag bit0 to bit15 are forwarded to Xorriso_interpreter()
|
|
|
|
bit16= no pageing of info lines
|
|
|
|
bit17= print === bar even if xorriso->found<0
|
|
|
|
@return see return of Xorriso_interpreter()
|
|
|
|
*/
|
|
|
|
int Xorriso_execute_option(struct XorrisO *xorriso, char *line, int flag);
|
|
|
|
|
|
|
|
|
2011-06-17 14:39:24 +00:00
|
|
|
/* Enter xorriso command line dialog mode, using libreadline if configured
|
|
|
|
at build time and not disabled at run time.
|
2009-06-23 12:31:23 +00:00
|
|
|
This call returns immediately if not option -dialog "on" was performed
|
|
|
|
before.
|
|
|
|
@param xorriso The context object in which to perform the commands.
|
|
|
|
@param flag unused yet, submit 0
|
|
|
|
@return <=0 error, 1= dialog mode ended normally ,
|
|
|
|
3= dialog mode ended normally,interpreter asks to end program
|
|
|
|
*/
|
|
|
|
int Xorriso_dialog(struct XorrisO *xorriso, int flag);
|
|
|
|
|
|
|
|
|
2007-10-17 13:00:58 +00:00
|
|
|
/* --------------------- Problem Status and Message API ------------------- */
|
|
|
|
|
|
|
|
|
|
|
|
/** Submit a problem message to the xorriso problem reporting and handling
|
|
|
|
system. This will eventually increase problem status rank, which may
|
|
|
|
at certain stages in the program be pardoned and reset to 0.
|
|
|
|
The pardon is governed by Xorriso_option_abort_on() and by the anger
|
|
|
|
of the affected program part. If no pardon has been given, then the problem
|
|
|
|
status reaches the caller of option functions.
|
|
|
|
Problem status should be inquired by Xorriso_eval_problem_status() and be
|
|
|
|
reset before next option execution by Xorriso_set_problem_status().
|
|
|
|
The problem status itself does not cause the failure of option functions.
|
|
|
|
But in case of failures for other reasons, a remnant overly severe problem
|
|
|
|
status can cause overly harsh program reactions.
|
|
|
|
@param xorriso The environment handle
|
|
|
|
@param error_code The unique error code of your message.
|
|
|
|
Submit 0 if you do not have reserved error codes within
|
|
|
|
the libburnia project.
|
|
|
|
@param msg_text Not more than 8196 characters of message text.
|
|
|
|
A final newline character gets appended automatically.
|
|
|
|
@param os_errno Eventual errno related to the message. Submit 0 if
|
|
|
|
the message is not related to a operating system error.
|
2010-09-19 13:53:42 +00:00
|
|
|
@param severity One of "ABORT", "FATAL", "FAILURE", "MISHAP", "SORRY",
|
|
|
|
"WARNING", "HINT", "NOTE", "UPDATE", "DEBUG".
|
|
|
|
Defaults to "FATAL".
|
2007-10-17 13:00:58 +00:00
|
|
|
@param flag Bitfield for control purposes
|
|
|
|
bit0= use pager (as with result)
|
|
|
|
bit1= permission to suppress output
|
|
|
|
@return 1 if message was delivered, <=0 if failure
|
|
|
|
*/
|
|
|
|
int Xorriso_msgs_submit(struct XorrisO *xorriso,
|
|
|
|
int error_code, char msg_text[], int os_errno,
|
|
|
|
char severity[], int flag);
|
|
|
|
|
2008-06-18 16:16:49 +00:00
|
|
|
/** Alternative call interface of Xorriso_msgs_submit with void* instead
|
|
|
|
of struct XorrisO*
|
|
|
|
*/
|
|
|
|
int Xorriso_msgs_submit_void(void *xorriso,
|
|
|
|
int error_code, char msg_text[], int os_errno,
|
|
|
|
char severity[], int flag);
|
|
|
|
|
2007-10-17 13:00:58 +00:00
|
|
|
|
|
|
|
/** Evaluate an advise whether to abort or whether to go on with option
|
|
|
|
processing. This should be called after any option function was processed.
|
|
|
|
It updates the problem status by processing the library message queues
|
2010-01-01 13:00:47 +00:00
|
|
|
and then it uses this status and the submitted return value of the
|
2007-10-17 13:00:58 +00:00
|
|
|
option function to evaluate the situation.
|
|
|
|
@param xorriso The environment handle
|
2007-12-30 19:02:44 +00:00
|
|
|
@param ret The return value of the previously called option function
|
2007-11-06 16:32:39 +00:00
|
|
|
@param flag bit0= do not issue own event messages
|
2007-11-11 11:21:46 +00:00
|
|
|
bit1= take xorriso->request_to_abort as reason for abort
|
2007-10-17 13:00:58 +00:00
|
|
|
@return Gives the advice:
|
|
|
|
2= pardon was given, go on
|
|
|
|
1= no problem, go on
|
|
|
|
0= function failed but xorriso would not abort, go on
|
|
|
|
<0= do abort
|
2007-11-11 11:21:46 +00:00
|
|
|
-1 = due to xorriso->problem_status
|
|
|
|
or due to ret<0
|
|
|
|
-2 = due to xorriso->request_to_abort
|
2007-10-17 13:00:58 +00:00
|
|
|
*/
|
|
|
|
int Xorriso_eval_problem_status(struct XorrisO *xorriso, int ret, int flag);
|
|
|
|
|
|
|
|
|
|
|
|
/** Set the current problem status of the xorriso handle.
|
|
|
|
@param xorriso The environment handle
|
|
|
|
@param severity A severity text. Empty text resets to "No Problem".
|
|
|
|
@param flag Unused yet. Submit 0.
|
|
|
|
@return <=0 failure (e.g. wrong severity text), 1 success.
|
|
|
|
*/
|
|
|
|
int Xorriso_set_problem_status(struct XorrisO *xorriso, char *severity,
|
|
|
|
int flag);
|
|
|
|
|
|
|
|
|
|
|
|
/* The next two functions are part of Xorriso_eval_problem_status().
|
2009-09-16 16:23:21 +00:00
|
|
|
You may use them to build an own advisor function.
|
2007-10-17 13:00:58 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
/** Obtain the current problem status of the xorriso handle.
|
|
|
|
@param xorriso The environment handle
|
|
|
|
@param severity The severity text matching the current problem status
|
|
|
|
@param flag Unused yet. Submit 0.
|
|
|
|
@return The severity rank number. 0= no problem occured.
|
|
|
|
*/
|
|
|
|
int Xorriso_get_problem_status(struct XorrisO *xorriso, char severity[80],
|
|
|
|
int flag);
|
|
|
|
|
|
|
|
|
|
|
|
/** Forward any pending messages from the library message queues to the
|
|
|
|
xorriso message system which puts out on info channel. This registers
|
|
|
|
the severity of the library events like the severity of a message submitted
|
|
|
|
via Xorriso_msgs_submit().
|
|
|
|
xorriso sets the message queues of the libraries to queuing "ALL".
|
2009-09-16 16:23:21 +00:00
|
|
|
Many inner functions of xorriso call Xorriso_process_msg_queues() on their
|
|
|
|
own because they expect library output pending. Nevertheless, a loop of
|
|
|
|
xorriso option calls should either call Xorriso_eval_problem_status() or
|
|
|
|
Xorriso_process_msg_queues() with each cycle.
|
2007-10-17 13:00:58 +00:00
|
|
|
@param xorriso The environment handle
|
|
|
|
@param flag Unused yet. Submit 0.
|
|
|
|
@return 1 on success, <=0 if failure
|
|
|
|
*/
|
|
|
|
int Xorriso_process_msg_queues(struct XorrisO *xorriso, int flag);
|
|
|
|
|
|
|
|
|
2009-06-23 12:31:23 +00:00
|
|
|
/** Write a message for option -errfile_log.
|
|
|
|
@param xorriso The environment handle
|
|
|
|
@param error_code The unique error code of your message.
|
|
|
|
Submit 0 if you do not have reserved error codes within
|
|
|
|
the libburnia project.
|
|
|
|
@param msg_text Not more than 8196 characters of message text.
|
|
|
|
@param os_errno Eventual errno related to the message. Submit 0 if
|
|
|
|
the message is not related to a operating system error.
|
|
|
|
@param flag bit0-7= meaning of msg_text
|
|
|
|
( 0= ERRFILE path , for internal use mainly )
|
|
|
|
1= mark line text (only to be put out if enabled)
|
|
|
|
@return <=0 error , >0 success
|
|
|
|
*/
|
|
|
|
int Xorriso_process_errfile(struct XorrisO *xorriso,
|
|
|
|
int error_code, char msg_text[], int os_errno,
|
|
|
|
int flag);
|
|
|
|
|
2007-10-17 13:00:58 +00:00
|
|
|
|
2008-08-13 19:08:07 +00:00
|
|
|
/* The outlist stack allows to redirect the info and result messages from
|
|
|
|
their normal channels into a pair of string lists which can at some
|
|
|
|
later time be retrieved by the application.
|
|
|
|
These redirection caches can be stacked to allow stacked applications.
|
2008-08-14 22:15:35 +00:00
|
|
|
xorriso itself uses them for internal purposes.
|
2008-08-13 19:08:07 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
/* A list item able of forming double chained lists */
|
|
|
|
struct Xorriso_lsT;
|
|
|
|
|
|
|
|
/** Maximum number of stacked redirections */
|
|
|
|
#define Xorriso_max_outlist_stacK 32
|
|
|
|
|
2008-08-15 10:29:47 +00:00
|
|
|
/** Enable a new redirection of info and/or result channel. The normal message
|
2008-08-13 19:08:07 +00:00
|
|
|
output and eventual older redirections will not see new messages until
|
|
|
|
the redirection is ended by a call to Xorriso_pull_outlists() with the
|
|
|
|
stack_handle value returned by this call.
|
|
|
|
Redirected output is not written to the files of Xorriso_option_logfile()
|
|
|
|
and the Xorriso_option_pkt_output() protocol will not be applied.
|
|
|
|
@param xorriso The environment handle
|
|
|
|
@param stack_handle returns an id number which is unique as long as
|
|
|
|
its redirection is stacked. It may be re-used after
|
|
|
|
its redirection was pulled from the stack.
|
2008-08-15 10:29:47 +00:00
|
|
|
@param flag Bitfield for control purposes
|
|
|
|
bit0= redirect result channel
|
|
|
|
bit1= redirect info channel
|
|
|
|
If bit0 and bit1 are 0, both channels get redirected.
|
2008-08-13 19:08:07 +00:00
|
|
|
@return 1 on success, <=0 if failure
|
|
|
|
*/
|
|
|
|
int Xorriso_push_outlists(struct XorrisO *xorriso, int *stack_handle,
|
|
|
|
int flag);
|
|
|
|
|
|
|
|
|
|
|
|
/** Disable the redirection given by stack_handle. If it was the current
|
2008-08-14 22:15:35 +00:00
|
|
|
receiver of messages then switch output to the next older redirection
|
|
|
|
resp. to the normal channels if no redirections are stacked any more.
|
2008-08-13 19:08:07 +00:00
|
|
|
The messages collected by the disabled redirection are handed out as
|
|
|
|
two lists. Both lists have to be disposed via Xorriso_lst_destroy_all()
|
|
|
|
when they are no longer needed.
|
|
|
|
The message lists are either NULL or represented by their first
|
|
|
|
Xorriso_lsT item.
|
|
|
|
@param xorriso The environment handle
|
|
|
|
@param stack_handle The id number returned by Xorriso_push_outlists()
|
|
|
|
@param result_list Result and mark messages (usually directed to stdout)
|
|
|
|
@param info_list Info and mark messages (usually directed to stderr)
|
|
|
|
@param flag unused yet, submit 0
|
|
|
|
@return 1 on success, <=0 if failure
|
|
|
|
*/
|
|
|
|
int Xorriso_pull_outlists(struct XorrisO *xorriso, int stack_handle,
|
|
|
|
struct Xorriso_lsT **result_list,
|
|
|
|
struct Xorriso_lsT **info_list, int flag);
|
|
|
|
|
|
|
|
|
|
|
|
/** Obtain the text message from the current list item.
|
|
|
|
@param entry The current list item
|
|
|
|
@param flag unused yet, submit 0
|
2008-08-14 22:15:35 +00:00
|
|
|
@return Pointer to the text content of the list item.
|
2008-08-13 19:08:07 +00:00
|
|
|
This pointer does not have to be freed.
|
|
|
|
*/
|
|
|
|
char *Xorriso_lst_get_text(struct Xorriso_lsT *entry, int flag);
|
|
|
|
|
|
|
|
|
|
|
|
/** Obtain the address of the next item in the chain of messages.
|
|
|
|
An iteration over the output of Xorriso_pull_outlists() starts at the
|
|
|
|
returned result_list resp. info_list and ends when this function returns
|
|
|
|
NULL.
|
|
|
|
@param entry The current list item
|
|
|
|
@param flag unused yet, submit 0
|
2008-08-14 22:15:35 +00:00
|
|
|
@return Pointer to the next list item or NULL if end of list.
|
2008-08-13 19:08:07 +00:00
|
|
|
This pointer does not have to be freed.
|
|
|
|
*/
|
|
|
|
struct Xorriso_lsT *Xorriso_lst_get_next(struct Xorriso_lsT *entry, int flag);
|
|
|
|
|
|
|
|
|
|
|
|
/** Obtain the address of the previous item in the chain of messages.
|
|
|
|
@param entry The current list item
|
|
|
|
@param flag unused yet, submit 0
|
2008-08-14 22:15:35 +00:00
|
|
|
@return Pointer to the previous list item or NULL if start of list.
|
2008-08-13 19:08:07 +00:00
|
|
|
This pointer does not have to be freed.
|
|
|
|
*/
|
|
|
|
struct Xorriso_lsT *Xorriso_lst_get_prev(struct Xorriso_lsT *entry, int flag);
|
|
|
|
|
|
|
|
|
|
|
|
/** Destroy all list items which are directly or indirectly connected to
|
|
|
|
the given link item.
|
2010-05-21 13:37:25 +00:00
|
|
|
All pointers obtained by Xorriso_lst_get_text() become invalid by this.
|
2008-08-13 19:08:07 +00:00
|
|
|
Apply this to each of the two list handles obtained by
|
|
|
|
Xorriso_pull_outlists() when the lists are no longer needed.
|
2008-08-14 22:15:35 +00:00
|
|
|
@param lstring *lstring will be freed and set to NULL.
|
|
|
|
It is not dangerous to submit a pointer to a NULL-pointer.
|
2008-08-13 19:08:07 +00:00
|
|
|
@param flag unused yet, submit 0
|
2008-08-14 22:15:35 +00:00
|
|
|
@return -1= lstring was NULL (i.e. wrong use of this call),
|
|
|
|
0= *lstring was already NULL,
|
|
|
|
1= item actually disposed
|
2008-08-13 19:08:07 +00:00
|
|
|
*/
|
|
|
|
int Xorriso_lst_destroy_all(struct Xorriso_lsT **lstring, int flag);
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* ---------------------------- Command API ------------------------ */
|
|
|
|
/* See man 1 xorriso for explanation of the particular commands */
|
2007-10-17 13:00:58 +00:00
|
|
|
/*
|
2012-03-05 14:53:27 +00:00
|
|
|
Before each call to a command function, there should happen:
|
2007-10-17 13:00:58 +00:00
|
|
|
Xorriso_set_problem_status() with empty severity text.
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
After each call to a command function, there should happen:
|
2007-10-17 13:00:58 +00:00
|
|
|
Xorriso_eval_problem_status()
|
|
|
|
One should follow its eventual advice to abort.
|
2009-06-23 12:31:23 +00:00
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
Commands with a varying number of arguments get then passed like
|
2009-06-23 12:31:23 +00:00
|
|
|
Xorriso_interpreter(). E.g.:
|
|
|
|
int Xorriso_option_add(struct XorrisO *xorriso, int argc, char **argv,
|
|
|
|
int *idx, int flag);
|
2012-03-05 14:53:27 +00:00
|
|
|
The command functions will begin to read the arguments at position *idx
|
2010-10-19 10:48:37 +00:00
|
|
|
and will see the list end either at the next argv which contains the
|
|
|
|
-list_delimiter text or at argv[argc-1].
|
|
|
|
After the call, *idx will be the index of the first not yet interpreted
|
|
|
|
argv.
|
2011-01-04 19:30:49 +00:00
|
|
|
|
|
|
|
Do not set any flag bits which are not described by "@param flag".
|
|
|
|
I.e. if flag is not mentioned, then submit 0.
|
|
|
|
Yet undefined flag bits might get a meaning in future. Unset bits will
|
|
|
|
then produce the traditional behavior, whereas set bits might bring
|
|
|
|
surprises to inadverted callers.
|
2007-10-17 13:00:58 +00:00
|
|
|
*/
|
|
|
|
|
2007-10-12 20:39:29 +00:00
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -abort_on */
|
2007-10-12 20:39:29 +00:00
|
|
|
int Xorriso_option_abort_on(struct XorrisO *xorriso, char *severity, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -abstract_file */
|
2011-03-09 12:38:37 +00:00
|
|
|
/* @since 0.6.0 */
|
2010-06-26 11:40:36 +00:00
|
|
|
int Xorriso_option_abstract_file(struct XorrisO *xorriso, char *name,
|
|
|
|
int flag);
|
2009-01-21 20:45:22 +00:00
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -acl "on"|"off" */
|
2009-01-21 20:45:22 +00:00
|
|
|
int Xorriso_option_acl(struct XorrisO *xorriso, char *mode, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -add */
|
2008-02-08 21:52:05 +00:00
|
|
|
/* @param flag bit0=do not report the added item
|
2008-02-11 11:33:17 +00:00
|
|
|
bit1=do not reset pacifier, no final pacifier message
|
2008-02-08 21:52:05 +00:00
|
|
|
*/
|
2007-10-12 20:39:29 +00:00
|
|
|
int Xorriso_option_add(struct XorrisO *xorriso, int argc, char **argv,
|
|
|
|
int *idx, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -add_plainly "on"|"off" */
|
2008-01-20 20:03:48 +00:00
|
|
|
int Xorriso_option_add_plainly(struct XorrisO *xorriso, char *mode,
|
|
|
|
int flag);
|
|
|
|
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -alter_date, alter_date_r */
|
2007-12-31 13:53:39 +00:00
|
|
|
/* @param flag bit0=recursive (-alter_date_r)
|
|
|
|
*/
|
2007-11-07 19:18:31 +00:00
|
|
|
int Xorriso_option_alter_date(struct XorrisO *xorriso,
|
|
|
|
char *time_type, char *timestring,
|
|
|
|
int argc, char **argv, int *idx, int flag);
|
2007-10-12 20:39:29 +00:00
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -append_partition */
|
2011-03-09 12:38:37 +00:00
|
|
|
/* @since 0.6.4 */
|
2010-10-18 21:22:23 +00:00
|
|
|
int Xorriso_option_append_partition(struct XorrisO *xorriso, char *partno_text,
|
|
|
|
char *type_text, char *image_path, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -application_id */
|
2008-11-04 16:22:51 +00:00
|
|
|
int Xorriso_option_application_id(struct XorrisO *xorriso, char *name,
|
|
|
|
int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -as */
|
2008-10-17 07:50:35 +00:00
|
|
|
/* @param flag bit0=do not report the added item
|
|
|
|
bit1=do not reset pacifier, no final pacifier message
|
|
|
|
*/
|
|
|
|
int Xorriso_option_as(struct XorrisO *xorriso, int argc, char **argv,
|
|
|
|
int *idx, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -assert_volid */
|
2008-12-14 09:31:52 +00:00
|
|
|
int Xorriso_option_assert_volid(struct XorrisO *xorriso, char *pattern,
|
|
|
|
char *severity, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -auto_charset "on"|"off" */
|
2009-03-20 19:33:51 +00:00
|
|
|
int Xorriso_option_auto_charset(struct XorrisO *xorriso, char *mode, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -backslash_codes */
|
2008-10-17 07:50:35 +00:00
|
|
|
int Xorriso_option_backslash_codes(struct XorrisO *xorriso, char *mode,
|
|
|
|
int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -ban_stdio_write */
|
2007-10-12 20:39:29 +00:00
|
|
|
int Xorriso_option_ban_stdio_write(struct XorrisO *xorriso, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -biblio_file */
|
2011-03-09 12:38:37 +00:00
|
|
|
/* @since 0.6.0 */
|
2010-06-26 11:40:36 +00:00
|
|
|
int Xorriso_option_biblio_file(struct XorrisO *xorriso, char *name, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -blank and -format */
|
2008-02-05 19:15:43 +00:00
|
|
|
/* @param flag bit0= format rather than blank
|
|
|
|
@return <=0 error , 1 success, 2 revoked by -reassure
|
|
|
|
*/
|
2007-10-12 20:39:29 +00:00
|
|
|
int Xorriso_option_blank(struct XorrisO *xorriso, char *mode, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -boot_image */
|
2008-02-11 09:48:29 +00:00
|
|
|
int Xorriso_option_boot_image(struct XorrisO *xorriso, char *form,
|
|
|
|
char *treatment, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -calm_drive */
|
2009-08-31 21:09:16 +00:00
|
|
|
int Xorriso_option_calm_drive(struct XorrisO *xorriso, char *which, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -cd alias -cdi */
|
2007-10-12 20:39:29 +00:00
|
|
|
int Xorriso_option_cdi(struct XorrisO *xorriso, char *iso_rr_path, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -cdx */
|
2007-10-12 20:39:29 +00:00
|
|
|
int Xorriso_option_cdx(struct XorrisO *xorriso, char *disk_path, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -changes_pending */
|
2012-03-04 09:59:31 +00:00
|
|
|
/* @since 1.2.2 */
|
2012-03-03 18:29:01 +00:00
|
|
|
int Xorriso_option_changes_pending(struct XorrisO *xorriso, char *state,
|
|
|
|
int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -charset */
|
2008-11-04 16:22:51 +00:00
|
|
|
/* @param flag bit0= set in_charset
|
|
|
|
bit1= set out_charset
|
|
|
|
*/
|
|
|
|
int Xorriso_option_charset(struct XorrisO *xorriso, char *name, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -check_md5 and -check_md5_r
|
2009-08-11 19:55:08 +00:00
|
|
|
@param flag bit0= issue summary message
|
|
|
|
bit1= do not reset pacifier, no final pacifier message
|
|
|
|
bit2= do not issue pacifier messages at all
|
|
|
|
bit3= recursive: -check_md5_r
|
|
|
|
*/
|
|
|
|
int Xorriso_option_check_md5(struct XorrisO *xorriso,
|
|
|
|
int argc, char **argv, int *idx, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -check_media */
|
2008-08-14 22:15:35 +00:00
|
|
|
int Xorriso_option_check_media(struct XorrisO *xorriso,
|
|
|
|
int argc, char **argv, int *idx, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -check_media_defaults */
|
2008-09-04 10:02:58 +00:00
|
|
|
int Xorriso_option_check_media_defaults(struct XorrisO *xorriso,
|
|
|
|
int argc, char **argv, int *idx, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -chgrp alias -chgrpi , chgrp_r alias chgrpi */
|
2007-12-31 13:53:39 +00:00
|
|
|
/* @param flag bit0=recursive (-chgrp_r)
|
|
|
|
*/
|
2007-11-07 19:18:31 +00:00
|
|
|
int Xorriso_option_chgrpi(struct XorrisO *xorriso, char *gid,
|
2007-10-12 20:39:29 +00:00
|
|
|
int argc, char **argv, int *idx, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -chmod alias -chmodi , -chmod_r alias chmod_ri */
|
2007-12-31 13:53:39 +00:00
|
|
|
/* @param flag bit0=recursive (-chmod_r)
|
|
|
|
*/
|
2007-11-07 19:18:31 +00:00
|
|
|
int Xorriso_option_chmodi(struct XorrisO *xorriso, char *mode,
|
2007-10-12 20:39:29 +00:00
|
|
|
int argc, char **argv, int *idx, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -chown alias -chowni , chown_r alias chown_ri */
|
2007-12-31 13:53:39 +00:00
|
|
|
/* @param flag bit0=recursive (-chown_r)
|
|
|
|
*/
|
2007-11-07 19:18:31 +00:00
|
|
|
int Xorriso_option_chowni(struct XorrisO *xorriso, char *uid,
|
2007-10-12 20:39:29 +00:00
|
|
|
int argc, char **argv, int *idx, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -clone */
|
2011-03-09 12:38:37 +00:00
|
|
|
/* @since 1.0.2 */
|
2011-02-01 18:58:27 +00:00
|
|
|
int Xorriso_option_clone(struct XorrisO *xorriso, char *origin, char *dest,
|
|
|
|
int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -close "on"|"off" */
|
2007-10-12 20:39:29 +00:00
|
|
|
int Xorriso_option_close(struct XorrisO *xorriso, char *mode, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -close_damaged */
|
2011-06-01 16:52:29 +00:00
|
|
|
/* @since 1.1.0 */
|
|
|
|
int Xorriso_option_close_damaged(struct XorrisO *xorriso, char *mode,
|
|
|
|
int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -close_filter_list */
|
2010-05-15 18:48:10 +00:00
|
|
|
int Xorriso_option_close_filter_list(struct XorrisO *xorriso, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -commit */
|
|
|
|
/* @param flag bit0= leave indrive and outdrive acquired as they were,
|
|
|
|
i.e. do not acquire outdrive as new in-out-drive
|
2008-02-05 17:58:30 +00:00
|
|
|
bit1= do not perform eventual -reassure
|
|
|
|
@return <=0 error , 1 success, 2 revoked by -reassure
|
2008-02-02 13:19:53 +00:00
|
|
|
*/
|
2007-10-12 20:39:29 +00:00
|
|
|
int Xorriso_option_commit(struct XorrisO *xorriso, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -commit_eject */
|
2008-02-05 17:58:30 +00:00
|
|
|
/* @return <=0 error , 1 success, 2 revoked by -reassure
|
|
|
|
*/
|
2008-02-02 13:19:53 +00:00
|
|
|
int Xorriso_option_commit_eject(struct XorrisO *xorriso, char *which, int flag);
|
2008-01-25 17:54:47 +00:00
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -compare and -compare_r
|
2008-02-29 20:09:12 +00:00
|
|
|
@param flag bit0= issue summary message
|
|
|
|
bit1= do not reset pacifier, no final pacifier message
|
|
|
|
bit2= do not issue pacifier messages at all
|
|
|
|
bit3= recursive: -compare_r
|
|
|
|
*/
|
|
|
|
int Xorriso_option_compare(struct XorrisO *xorriso, char *disk_path,
|
|
|
|
char *iso_path, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -compliance */
|
2010-05-15 18:48:10 +00:00
|
|
|
int Xorriso_option_compliance(struct XorrisO *xorriso, char *mode, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -copyright_file */
|
2011-03-09 12:38:37 +00:00
|
|
|
/* @since 0.6.0 */
|
2010-06-26 11:40:36 +00:00
|
|
|
int Xorriso_option_copyright_file(struct XorrisO *xorriso, char *name,
|
|
|
|
int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -cp_clone */
|
2011-03-09 12:38:37 +00:00
|
|
|
/* @since 1.0.2 */
|
2011-02-04 19:19:24 +00:00
|
|
|
int Xorriso_option_cp_clone(struct XorrisO *xorriso, int argc, char **argv,
|
|
|
|
int *idx, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -cpr alias -cpri */
|
2007-12-25 16:02:06 +00:00
|
|
|
int Xorriso_option_cpri( struct XorrisO *xorriso, int argc, char **argv,
|
2007-10-12 20:39:29 +00:00
|
|
|
int *idx, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -cpx , -cpax, -cp_rx , -cp_rax */
|
2008-06-09 13:44:06 +00:00
|
|
|
/* @param flag bit0= recursive (-cp_rx, -cp_rax)
|
|
|
|
bit1= full property restore (-cpax, -cp_rax)
|
|
|
|
*/
|
2008-05-27 20:14:51 +00:00
|
|
|
int Xorriso_option_cpx(struct XorrisO *xorriso, int argc, char **argv,
|
|
|
|
int *idx, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -cut_out */
|
2008-03-09 14:22:14 +00:00
|
|
|
int Xorriso_option_cut_out(struct XorrisO *xorriso, char *disk_path,
|
|
|
|
char *start, char *count, char *iso_rr_path, int flag);
|
2007-10-12 20:39:29 +00:00
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -dev , -indev, -outdev */
|
2008-02-05 19:15:43 +00:00
|
|
|
/* @param flag bit0=use as indev , bit1= use as outdev
|
|
|
|
@return <=0 error , 1 success, 2 revoked by -reassure
|
|
|
|
*/
|
2007-10-12 20:39:29 +00:00
|
|
|
int Xorriso_option_dev(struct XorrisO *xorriso, char *adr, int flag);
|
|
|
|
|
2012-03-11 16:41:10 +00:00
|
|
|
/* Command -data_cache_size */
|
|
|
|
/* @since 1.2.2 */
|
|
|
|
int Xorriso_option_data_cache_size(struct XorrisO *xorriso, char *num_tiles,
|
|
|
|
char *tile_blocks, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -devices */
|
2011-07-27 21:14:49 +00:00
|
|
|
/* @param flag bit0= perform -device_links rather than -devices
|
|
|
|
@return <=0 error , 1 success, 2 revoked by -reassure
|
2008-02-05 19:15:43 +00:00
|
|
|
*/
|
2007-10-12 20:39:29 +00:00
|
|
|
int Xorriso_option_devices(struct XorrisO *xorriso, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -dialog "on"|"off" */
|
2007-10-12 20:39:29 +00:00
|
|
|
int Xorriso_option_dialog(struct XorrisO *xorriso, char *mode, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -disk_dev_ino "on"|"off" */
|
2009-02-17 18:42:41 +00:00
|
|
|
int Xorriso_option_disk_dev_ino(struct XorrisO *xorriso, char *mode, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -disk_pattern "on"|"ls"|"off" */
|
2007-12-04 07:44:59 +00:00
|
|
|
int Xorriso_option_disk_pattern(struct XorrisO *xorriso, char *mode, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -displacement [-]offset */
|
2011-03-09 12:38:37 +00:00
|
|
|
/* @since 0.6.6 */
|
2010-11-30 09:43:32 +00:00
|
|
|
int Xorriso_option_displacement(struct XorrisO *xorriso, char *value,
|
|
|
|
int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -drive_class */
|
2009-01-10 15:40:45 +00:00
|
|
|
int Xorriso_option_drive_class(struct XorrisO *xorriso,
|
|
|
|
char *d_class, char *pattern, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -dummy "on"|"off" */
|
2007-10-12 20:39:29 +00:00
|
|
|
int Xorriso_option_dummy(struct XorrisO *xorriso, char *mode, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -dvd_obs "default"|"32k"|"64k" */
|
2009-11-17 13:41:28 +00:00
|
|
|
int Xorriso_option_dvd_obs(struct XorrisO *xorriso, char *obs, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -early_stdio_test */
|
2011-03-21 09:37:02 +00:00
|
|
|
/* @since 1.0.6 */
|
|
|
|
int Xorriso_option_early_stdio_test(struct XorrisO *xorriso, char *mode,
|
|
|
|
int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -eject */
|
2008-02-08 21:52:05 +00:00
|
|
|
/* @param flag bit0=do not report toc of eventually remaining drives
|
|
|
|
*/
|
2007-10-12 20:39:29 +00:00
|
|
|
int Xorriso_option_eject(struct XorrisO *xorriso, char *which, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -end , and -rollback_end */
|
2008-02-05 17:58:30 +00:00
|
|
|
/* @param flag bit0= discard pending changes
|
|
|
|
@return <=0 error , 1 success, 2 revoked by -reassure
|
|
|
|
*/
|
2007-10-12 20:39:29 +00:00
|
|
|
int Xorriso_option_end(struct XorrisO *xorriso, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -errfile_log marked|plain path|-|"" */
|
2008-05-01 12:43:39 +00:00
|
|
|
int Xorriso_option_errfile_log(struct XorrisO *xorriso,
|
|
|
|
char *mode, char *path, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -error_behavior */
|
2008-05-01 12:43:39 +00:00
|
|
|
int Xorriso_option_error_behavior(struct XorrisO *xorriso,
|
|
|
|
char *occasion, char *behavior, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -external_filter */
|
2009-04-02 16:25:33 +00:00
|
|
|
int Xorriso_option_external_filter(struct XorrisO *xorriso,
|
|
|
|
int argc, char **argv, int *idx, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -extract , -extract_single */
|
2008-06-14 14:04:30 +00:00
|
|
|
/* @param flag bit0=do not report the restored item
|
|
|
|
bit1=do not reset pacifier, no final pacifier message
|
2011-06-17 14:39:24 +00:00
|
|
|
bit5= -extract_single: do not insert directory tree
|
2008-06-14 14:04:30 +00:00
|
|
|
*/
|
|
|
|
int Xorriso_option_extract(struct XorrisO *xorriso, char *disk_path,
|
|
|
|
char *iso_path, int flag);
|
2007-11-09 19:30:25 +00:00
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -extract_cut */
|
2008-09-04 10:02:58 +00:00
|
|
|
int Xorriso_option_extract_cut(struct XorrisO *xorriso, char *iso_rr_path,
|
|
|
|
char *start, char *count, char *disk_path, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -file_size_limit */
|
2010-05-15 18:48:10 +00:00
|
|
|
int Xorriso_option_file_size_limit(struct XorrisO *xorriso,
|
|
|
|
int argc, char **argv, int *idx, int flag);
|
|
|
|
|
2007-10-12 20:39:29 +00:00
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -find alias -findi, and -findx */
|
2007-12-22 14:39:12 +00:00
|
|
|
/* @param flag bit0= -findx rather than -findi
|
2008-02-29 20:09:12 +00:00
|
|
|
bit1= do not reset pacifier, no final pacifier message
|
|
|
|
do not reset find_compare_result
|
2007-12-22 14:39:12 +00:00
|
|
|
*/
|
|
|
|
int Xorriso_option_find(struct XorrisO *xorriso, int argc, char **argv,
|
2007-12-21 13:16:49 +00:00
|
|
|
int *idx, int flag);
|
2007-10-12 20:39:29 +00:00
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -follow */
|
2010-05-15 18:48:10 +00:00
|
|
|
int Xorriso_option_follow(struct XorrisO *xorriso, char *mode, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -fs */
|
2007-10-19 20:41:34 +00:00
|
|
|
int Xorriso_option_fs(struct XorrisO *xorriso, char *size, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -getfacl alias -getfacli, -getfacl_r alias -getfacl_ri */
|
2009-01-25 14:11:37 +00:00
|
|
|
/* @param flag bit0=recursive -getfacl_r
|
|
|
|
*/
|
|
|
|
int Xorriso_option_getfacli(struct XorrisO *xorriso,
|
|
|
|
int argc, char **argv, int *idx, int flag);
|
2009-01-17 18:15:22 +00:00
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -gid */
|
2007-10-12 20:39:29 +00:00
|
|
|
int Xorriso_option_gid(struct XorrisO *xorriso, char *gid, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -grow_blindly */
|
2008-07-05 18:23:46 +00:00
|
|
|
int Xorriso_option_grow_blindly(struct XorrisO *xorriso, char *msc2, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -hardlinks "on"|"off" */
|
2009-05-09 20:17:35 +00:00
|
|
|
int Xorriso_option_hardlinks(struct XorrisO *xorriso, char *mode, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -help and part of -prog_help */
|
2007-10-12 20:39:29 +00:00
|
|
|
int Xorriso_option_help(struct XorrisO *xorriso, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -hide */
|
2011-03-09 12:38:37 +00:00
|
|
|
/* @since 0.6.0 */
|
2010-06-20 16:48:28 +00:00
|
|
|
int Xorriso_option_hide(struct XorrisO *xorriso, char *hide_state,
|
|
|
|
int argc, char **argv, int *idx, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -history */
|
2007-10-12 20:39:29 +00:00
|
|
|
int Xorriso_option_history(struct XorrisO *xorriso, char *line, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -iso_rr_pattern "on"|"ls"|"off" */
|
2008-06-14 14:04:30 +00:00
|
|
|
int Xorriso_option_iso_rr_pattern(struct XorrisO *xorriso, char *mode,
|
|
|
|
int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -jigdo aspect argument */
|
2011-03-09 12:38:37 +00:00
|
|
|
/* @since 0.6.4 */
|
2010-09-29 09:24:20 +00:00
|
|
|
int Xorriso_option_jigdo(struct XorrisO *xorriso, char *aspect, char *arg,
|
|
|
|
int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -joliet "on"|"off" */
|
2007-12-26 16:01:59 +00:00
|
|
|
int Xorriso_option_joliet(struct XorrisO *xorriso, char *mode, int flag);
|
2007-10-12 20:39:29 +00:00
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -list_arg_sorting */
|
2012-01-31 13:04:28 +00:00
|
|
|
/* @since 1.2.2 */
|
|
|
|
int Xorriso_option_list_arg_sorting(struct XorrisO *xorriso, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -list_delimiter */
|
2008-09-05 09:54:38 +00:00
|
|
|
int Xorriso_option_list_delimiter(struct XorrisO *xorriso, char *text,
|
|
|
|
int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -list_extras */
|
2012-01-31 13:04:28 +00:00
|
|
|
/* @since 1.1.6 */
|
2011-08-18 15:19:27 +00:00
|
|
|
int Xorriso_option_list_extras(struct XorrisO *xorriso, char *mode, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -list_formats */
|
2008-05-13 11:58:43 +00:00
|
|
|
int Xorriso_option_list_formats(struct XorrisO *xorriso, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -list_profiles */
|
2009-08-31 21:09:16 +00:00
|
|
|
int Xorriso_option_list_profiles(struct XorrisO *xorriso, char *which,
|
|
|
|
int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -list_speeds */
|
2012-01-31 13:04:28 +00:00
|
|
|
/* @since 1.1.2 */
|
2011-07-04 09:29:00 +00:00
|
|
|
int Xorriso_option_list_speeds(struct XorrisO *xorriso, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -load session|track|sbsector value */
|
2008-07-17 11:13:32 +00:00
|
|
|
/* @param flag bit0= with adr_mode sbsector: adr_value is possibly 16 too high
|
|
|
|
@return <=0 error , 1 success, 2 revoked by -reassure
|
2008-05-13 11:58:43 +00:00
|
|
|
*/
|
|
|
|
int Xorriso_option_load(struct XorrisO *xorriso, char *adr_mode,
|
|
|
|
char *adr_value, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -logfile */
|
2007-12-20 11:14:49 +00:00
|
|
|
int Xorriso_option_logfile(struct XorrisO *xorriso, char *channel,
|
|
|
|
char *fileadr, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -ls alias -lsi and -lsl alias -lsli
|
2007-12-20 11:14:49 +00:00
|
|
|
and -lsd alias -lsdi and -lsdl alias -lsdli
|
|
|
|
and -du alias -dui and -dus alias -dusi
|
|
|
|
@param flag bit0= long format (-lsl , -du)
|
2007-11-01 19:11:56 +00:00
|
|
|
bit1= do not expand patterns but use literally
|
|
|
|
bit2= du rather than ls
|
2007-12-20 11:14:49 +00:00
|
|
|
bit3= list directories as themselves (ls -d)
|
2007-11-01 19:11:56 +00:00
|
|
|
*/
|
2007-10-31 10:34:52 +00:00
|
|
|
int Xorriso_option_lsi(struct XorrisO *xorriso, int argc, char **argv,
|
|
|
|
int *idx, int flag);
|
2007-10-12 20:39:29 +00:00
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -lsx, -lslx, -lsdx , -lsdlx , -dux , -dusx
|
2007-12-20 11:14:49 +00:00
|
|
|
@param flag bit0= long format (-lslx , -dux)
|
2007-12-04 07:44:59 +00:00
|
|
|
bit1= do not expand patterns but use literally
|
|
|
|
bit2= du rather than ls
|
2007-12-20 11:14:49 +00:00
|
|
|
bit3= list directories as themselves (ls -d)
|
2007-12-04 07:44:59 +00:00
|
|
|
*/
|
|
|
|
int Xorriso_option_lsx(struct XorrisO *xorriso, int argc, char **argv,
|
|
|
|
int *idx, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -map */
|
2008-05-15 15:00:39 +00:00
|
|
|
/* @param flag bit0=do not report the added item
|
|
|
|
bit1=do not reset pacifier, no final pacifier message
|
|
|
|
*/
|
|
|
|
int Xorriso_option_map(struct XorrisO *xorriso, char *disk_path,
|
|
|
|
char *iso_path, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -map_l , -compare_l , -update_l , -extract_l */
|
2008-06-17 12:15:16 +00:00
|
|
|
/* @param flag bit8-11= mode 0= -map_l
|
|
|
|
1= -compare_l
|
|
|
|
2= -update_l
|
|
|
|
3= -extract_l
|
|
|
|
*/
|
|
|
|
int Xorriso_option_map_l(struct XorrisO *xorriso, int argc, char **argv,
|
|
|
|
int *idx, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -mark */
|
2007-10-12 20:39:29 +00:00
|
|
|
int Xorriso_option_mark(struct XorrisO *xorriso, char *mark, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -md5 */
|
2009-08-10 19:43:17 +00:00
|
|
|
int Xorriso_option_md5(struct XorrisO *xorriso, char *mode, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -mkdir alias -mkdiri */
|
2007-10-12 20:39:29 +00:00
|
|
|
int Xorriso_option_mkdiri(struct XorrisO *xorriso, int argc, char **argv,
|
|
|
|
int *idx, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -mount , -mount_cmd , -session_string */
|
2009-10-10 14:22:50 +00:00
|
|
|
/* @param bit0= -mount_cmd: print mount command to result channel rather
|
|
|
|
than performing it
|
|
|
|
bit1= perform -session_string rather than -mount_cmd
|
|
|
|
*/
|
2008-12-05 17:17:29 +00:00
|
|
|
int Xorriso_option_mount(struct XorrisO *xorriso, char *dev, char *adr_mode,
|
|
|
|
char *adr, char *cmd, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -mount_opts option[:...] */
|
2009-10-10 14:22:50 +00:00
|
|
|
int Xorriso_option_mount_opts(struct XorrisO *xorriso, char *mode, int flag);
|
2008-12-05 17:17:29 +00:00
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -mv alias -mvi */
|
2007-10-12 20:39:29 +00:00
|
|
|
int Xorriso_option_mvi(struct XorrisO *xorriso, int argc, char **argv,
|
|
|
|
int *idx, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -no_rc */
|
2007-10-12 20:39:29 +00:00
|
|
|
int Xorriso_option_no_rc(struct XorrisO *xorriso, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -not_leaf , -as mkisofs -hide without '/' */
|
2010-06-23 13:43:40 +00:00
|
|
|
/* @param flag bit0= add to iso_rr hide list rather than to disk exclusions
|
|
|
|
@since 0.6.0
|
|
|
|
bit1= add to joliet hide list rather than disk exclusions
|
|
|
|
@since 0.6.0
|
|
|
|
*/
|
2008-05-02 20:50:40 +00:00
|
|
|
int Xorriso_option_not_leaf(struct XorrisO *xorriso, char *pattern, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -not_list , -quoted_not_list */
|
2008-10-15 18:26:48 +00:00
|
|
|
/* @param flag bit0= -quoted_not_list */
|
2008-07-09 06:08:03 +00:00
|
|
|
int Xorriso_option_not_list(struct XorrisO *xorriso, char *adr, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -not_mgt */
|
2010-05-15 18:48:10 +00:00
|
|
|
int Xorriso_option_not_mgt(struct XorrisO *xorriso, char *setting, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -not_paths , -as mkisofs -hide with '/' */
|
2010-06-23 13:43:40 +00:00
|
|
|
/* @param flag bit0= add to iso_rr hide list rather than to disk exclusions
|
|
|
|
@since 0.6.0
|
|
|
|
bit1= add to joliet hide list rather than disk exclusions
|
|
|
|
@since 0.6.0
|
|
|
|
bit2= enable disk pattern expansion regardless of -disk_pattern
|
|
|
|
*/
|
2008-05-02 20:50:40 +00:00
|
|
|
int Xorriso_option_not_paths(struct XorrisO *xorriso, int argc, char **argv,
|
|
|
|
int *idx, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -options_from_file */
|
2007-10-12 20:39:29 +00:00
|
|
|
/* @return <=0 error , 1 = success , 3 = request to end program run */
|
|
|
|
int Xorriso_option_options_from_file(struct XorrisO *xorriso, char *adr,
|
|
|
|
int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -osirrox "on"|"off" */
|
2008-05-22 19:25:59 +00:00
|
|
|
int Xorriso_option_osirrox(struct XorrisO *xorriso, char *mode, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -overwrite "on"|"nondir"|"off" */
|
2007-10-12 20:39:29 +00:00
|
|
|
int Xorriso_option_overwrite(struct XorrisO *xorriso, char *mode, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -pacifier */
|
2008-07-16 13:06:31 +00:00
|
|
|
int Xorriso_option_pacifier(struct XorrisO *xorriso, char *style, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -padding */
|
2008-02-05 16:27:10 +00:00
|
|
|
int Xorriso_option_padding(struct XorrisO *xorriso, char *size, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -page */
|
2007-10-12 20:39:29 +00:00
|
|
|
int Xorriso_option_page(struct XorrisO *xorriso, int len, int width, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -paste_in */
|
2008-06-14 18:44:42 +00:00
|
|
|
int Xorriso_option_paste_in(struct XorrisO *xorriso, char *iso_rr_path,
|
|
|
|
char *disk_path, char *start, char *count, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -path_list , -quoted_path_list */
|
2008-10-15 18:26:48 +00:00
|
|
|
/* @param flag bit0= -quoted_path_list */
|
2007-10-12 20:39:29 +00:00
|
|
|
int Xorriso_option_path_list(struct XorrisO *xorriso, char *adr, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -pathspecs */
|
2008-02-05 16:27:10 +00:00
|
|
|
int Xorriso_option_pathspecs(struct XorrisO *xorriso, char *mode, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -pkt_output */
|
2007-10-12 20:39:29 +00:00
|
|
|
int Xorriso_option_pkt_output(struct XorrisO *xorriso, char *mode, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -preparer_id */
|
2011-03-09 12:38:37 +00:00
|
|
|
/* @since 0.6.2 */
|
2010-07-30 15:52:09 +00:00
|
|
|
int Xorriso_option_preparer_id(struct XorrisO *xorriso, char *name, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -print, -print_info , -print_mark */
|
2011-04-03 09:46:16 +00:00
|
|
|
/* @param flag bit0-1= output channel:
|
|
|
|
0= result channel
|
|
|
|
1= info channel @since 1.0.6
|
|
|
|
2= mark channel @since 1.0.6
|
|
|
|
*/
|
2007-10-12 20:39:29 +00:00
|
|
|
int Xorriso_option_print(struct XorrisO *xorriso, char *text, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -print_size
|
2008-02-23 11:40:42 +00:00
|
|
|
@param flag bit0= report in mkisofs compatible form on real stdout
|
|
|
|
*/
|
2007-10-12 20:39:29 +00:00
|
|
|
int Xorriso_option_print_size(struct XorrisO *xorriso, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -prog */
|
2007-10-12 20:39:29 +00:00
|
|
|
int Xorriso_option_prog(struct XorrisO *xorriso, char *name, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -prompt */
|
2010-05-15 18:48:10 +00:00
|
|
|
int Xorriso_option_prompt(struct XorrisO *xorriso, char *text, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -prog_help */
|
2007-10-12 20:39:29 +00:00
|
|
|
int Xorriso_option_prog_help(struct XorrisO *xorriso, char *name, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -publisher */
|
2008-02-21 13:01:34 +00:00
|
|
|
int Xorriso_option_publisher(struct XorrisO *xorriso, char *name, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -pvd_info */
|
2009-10-05 17:20:38 +00:00
|
|
|
int Xorriso_option_pvd_info(struct XorrisO *xorriso, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -pwd alias -pwdi */
|
2007-10-12 20:39:29 +00:00
|
|
|
int Xorriso_option_pwdi(struct XorrisO *xorriso, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -pwdx */
|
2007-10-12 20:39:29 +00:00
|
|
|
int Xorriso_option_pwdx(struct XorrisO *xorriso, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -read_mkisofsrc */
|
2011-03-09 12:38:37 +00:00
|
|
|
/* @since 0.6.0 */
|
2010-06-25 17:59:01 +00:00
|
|
|
int Xorriso_option_read_mkisofsrc(struct XorrisO *xorriso, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -reassure "on"|"tree"|"off" */
|
2008-05-02 20:50:40 +00:00
|
|
|
int Xorriso_option_reassure(struct XorrisO *xorriso, char *mode, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -report_about */
|
2007-10-19 16:49:37 +00:00
|
|
|
int Xorriso_option_report_about(struct XorrisO *xorriso, char *severity,
|
|
|
|
int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -return_with */
|
2008-02-11 13:55:09 +00:00
|
|
|
int Xorriso_option_return_with(struct XorrisO *xorriso, char *severity,
|
|
|
|
int exit_value, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -rm alias -rmi , -rm_r alias -rm_ri , -rmdir alias -rmdiri */
|
2007-11-07 15:01:20 +00:00
|
|
|
/* @param flag bit0=recursive , bit2= remove empty directory: rmdir */
|
2007-10-12 20:39:29 +00:00
|
|
|
int Xorriso_option_rmi(struct XorrisO *xorriso, int argc, char **argv,
|
|
|
|
int *idx, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -rollback */
|
2008-05-13 11:58:43 +00:00
|
|
|
/* @param flag bit0= do not -reassure
|
|
|
|
@return <=0 error , 1 success, 2 revoked by -reassure
|
2008-02-05 17:58:30 +00:00
|
|
|
*/
|
2007-10-12 20:39:29 +00:00
|
|
|
int Xorriso_option_rollback(struct XorrisO *xorriso, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -rom_toc_scan */
|
2012-03-10 14:59:44 +00:00
|
|
|
int Xorriso_option_rom_toc_scan(struct XorrisO *xorriso, char *mode, int flag);
|
|
|
|
|
|
|
|
/* Command -rr_reloc_dir */
|
|
|
|
/* @since 1.2.2 */
|
|
|
|
int Xorriso_option_rr_reloc_dir(struct XorrisO *xorriso, char *name, int flag);
|
2008-05-08 14:19:09 +00:00
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -scdbackup_tag */
|
2009-09-17 14:47:43 +00:00
|
|
|
int Xorriso_option_scdbackup_tag(struct XorrisO *xorriso, char *list_path,
|
|
|
|
char *record_name, int flag);
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -scsi_log */
|
2010-02-18 12:48:42 +00:00
|
|
|
int Xorriso_option_scsi_log(struct XorrisO *xorriso, char *mode, int flag);
|
2009-08-31 21:09:16 +00:00
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -session_log */
|
2008-04-07 18:57:27 +00:00
|
|
|
int Xorriso_option_session_log(struct XorrisO *xorriso, char *path, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -setfacl_list alias -setfacl_listi */
|
2009-01-29 16:53:45 +00:00
|
|
|
int Xorriso_option_setfacl_listi(struct XorrisO *xorriso, char *disk_path,
|
|
|
|
int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -setfacl alias -setfacli , -setfacl_r alias -setfacl_ri */
|
2009-01-25 14:11:37 +00:00
|
|
|
/* @param flag bit0=recursive -setfacl_r
|
|
|
|
*/
|
|
|
|
int Xorriso_option_setfacli(struct XorrisO *xorriso, char *acl_text,
|
|
|
|
int argc, char **argv, int *idx, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -setfattr alias -setfattri, -setfattr_r alias -setfattr_ri */
|
2009-02-08 13:21:36 +00:00
|
|
|
/* @param flag bit0=recursive -setfattr_r
|
|
|
|
*/
|
|
|
|
int Xorriso_option_setfattri(struct XorrisO *xorriso, char *name, char *value,
|
|
|
|
int argc, char **argv, int *idx, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -setfattr_list alias -setfattr_listi */
|
2009-02-13 20:25:42 +00:00
|
|
|
int Xorriso_option_setfattr_listi(struct XorrisO *xorriso, char *path,
|
|
|
|
int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -set_filter , -set_filter_r */
|
2009-04-02 16:25:33 +00:00
|
|
|
/* @param flag bit0=recursive -set_filter_r
|
|
|
|
*/
|
|
|
|
int Xorriso_option_set_filter(struct XorrisO *xorriso, char *name,
|
|
|
|
int argc, char **argv, int *idx, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -signal_handling */
|
2011-04-23 15:23:35 +00:00
|
|
|
/* @param flag bit0= do not yet install the eventual handler
|
2012-01-31 13:04:28 +00:00
|
|
|
@since 1.1.0
|
2011-04-23 15:23:35 +00:00
|
|
|
*/
|
|
|
|
int Xorriso_option_signal_handling(struct XorrisO *xorriso, char *mode,
|
|
|
|
int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -sleep */
|
2012-01-31 13:04:28 +00:00
|
|
|
/* @since 1.1.8 */
|
2011-10-14 09:43:30 +00:00
|
|
|
int Xorriso_option_sleep(struct XorrisO *xorriso, char *duration, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -speed */
|
2007-10-12 20:39:29 +00:00
|
|
|
int Xorriso_option_speed(struct XorrisO *xorriso, char *speed, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -split_size */
|
2008-03-29 16:44:39 +00:00
|
|
|
int Xorriso_option_split_size(struct XorrisO *xorriso, char *s, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -status */
|
2007-10-12 20:39:29 +00:00
|
|
|
int Xorriso_option_status(struct XorrisO *xorriso, char *mode, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -status_history_max */
|
2007-10-12 20:39:29 +00:00
|
|
|
int Xorriso_option_status_history_max(struct XorrisO *xorriso, int num1,
|
|
|
|
int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -stdio_sync "on"|"off"|size */
|
2009-11-17 13:41:28 +00:00
|
|
|
int Xorriso_option_stdio_sync(struct XorrisO *xorriso, char *rythm, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -stream_recording */
|
2008-05-27 20:14:51 +00:00
|
|
|
int Xorriso_option_stream_recording(struct XorrisO *xorriso, char *mode,
|
|
|
|
int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -system_id */
|
2009-10-07 18:04:53 +00:00
|
|
|
int Xorriso_option_system_id(struct XorrisO *xorriso, char *name, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -tell_media_space */
|
2007-10-12 20:39:29 +00:00
|
|
|
int Xorriso_option_tell_media_space(struct XorrisO *xorriso, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -temp_mem_limit */
|
2007-10-31 10:34:52 +00:00
|
|
|
int Xorriso_option_temp_mem_limit(struct XorrisO *xorriso, char *size,
|
|
|
|
int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -toc */
|
2007-10-12 20:39:29 +00:00
|
|
|
int Xorriso_option_toc(struct XorrisO *xorriso, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -uid */
|
2008-02-29 20:09:12 +00:00
|
|
|
int Xorriso_option_uid(struct XorrisO *xorriso, char *uid, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -unregister_filter */
|
2009-04-02 16:25:33 +00:00
|
|
|
int Xorriso_option_unregister_filter(struct XorrisO *xorriso, char *name,
|
|
|
|
int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -update and -update_r
|
2008-02-29 20:09:12 +00:00
|
|
|
@param flag bit0= issue summary message
|
|
|
|
bit1= do not reset pacifier, no final pacifier message
|
|
|
|
bit2= do not issue pacifier messages at all
|
|
|
|
bit3= recursive: -update_r
|
|
|
|
*/
|
|
|
|
int Xorriso_option_update(struct XorrisO *xorriso, char *disk_path,
|
|
|
|
char *iso_path, int flag);
|
2007-10-12 20:39:29 +00:00
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -use_readline */
|
2007-10-12 20:39:29 +00:00
|
|
|
int Xorriso_option_use_readline(struct XorrisO *xorriso, char *mode, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -version */
|
2007-10-12 20:39:29 +00:00
|
|
|
int Xorriso_option_version(struct XorrisO *xorriso, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -volid */
|
2010-06-25 17:59:01 +00:00
|
|
|
/* @param flag bit0= do not warn of problematic volid
|
|
|
|
*/
|
2007-12-26 16:01:59 +00:00
|
|
|
int Xorriso_option_volid(struct XorrisO *xorriso, char *volid, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -volset_id */
|
2009-10-07 18:04:53 +00:00
|
|
|
int Xorriso_option_volset_id(struct XorrisO *xorriso, char *name, int flag);
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -volume_date */
|
2010-04-07 20:27:05 +00:00
|
|
|
int Xorriso_option_volume_date(struct XorrisO *xorriso,
|
|
|
|
char *time_type, char *timestring, int flag);
|
|
|
|
|
2012-01-31 13:04:28 +00:00
|
|
|
/* There is no Xorriso_option_x() because -x has an effect only in
|
|
|
|
Xorriso_prescan_args(). Use the flag bits of Xorriso_interpreter() if
|
|
|
|
you want to impose command sorting on your own.
|
|
|
|
*/
|
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -xattr "on"|"off" */
|
2009-02-12 11:05:17 +00:00
|
|
|
int Xorriso_option_xattr(struct XorrisO *xorriso, char *mode, int flag);
|
2007-10-12 20:39:29 +00:00
|
|
|
|
2012-03-05 14:53:27 +00:00
|
|
|
/* Command -zisofs */
|
2009-04-11 17:26:48 +00:00
|
|
|
int Xorriso_option_zisofs(struct XorrisO *xorriso, char *mode, int flag);
|
|
|
|
|
|
|
|
|
2007-10-12 20:39:29 +00:00
|
|
|
#endif /* Xorriso_includeD */
|
|
|
|
|
|
|
|
|