223 lines
7.3 KiB
C
223 lines
7.3 KiB
C
|
|
||
|
/* Command line oriented batch and dialog tool which creates, loads,
|
||
|
manipulates and burns ISO 9660 filesystem images.
|
||
|
|
||
|
Copyright 2007 Thomas Schmitt, <scdbackup@gmx.net>
|
||
|
|
||
|
Provided under GPL version 2.
|
||
|
|
||
|
This file contains the public option interface of xorriso.
|
||
|
*/
|
||
|
|
||
|
#ifndef Xorriso_includeD
|
||
|
#define Xorriso_includeD yes
|
||
|
|
||
|
/** Opaque handle of the xorriso runtime context */
|
||
|
struct XorrisO;
|
||
|
|
||
|
|
||
|
/* ---------------------------- Options API ------------------------ */
|
||
|
/* See man 1 xorriso for explanation of the particular options */
|
||
|
|
||
|
/* Option -abort_on */
|
||
|
int Xorriso_option_abort_on(struct XorrisO *xorriso, char *severity, int flag);
|
||
|
|
||
|
/* Option -add */
|
||
|
int Xorriso_option_add(struct XorrisO *xorriso, int argc, char **argv,
|
||
|
int *idx, int flag);
|
||
|
|
||
|
/* Option -alter_date */
|
||
|
int Xorriso_option_slater_date(struct XorrisO *xorriso,
|
||
|
char *time_type, char *timestring,
|
||
|
int argc, char **argv, int *idx, int flag);
|
||
|
|
||
|
/* Option -ban_stdio_write */
|
||
|
int Xorriso_option_ban_stdio_write(struct XorrisO *xorriso, int flag);
|
||
|
|
||
|
/* Option -blank */
|
||
|
int Xorriso_option_blank(struct XorrisO *xorriso, char *mode, int flag);
|
||
|
|
||
|
/* Option -cd alias -cdi */
|
||
|
int Xorriso_option_cdi(struct XorrisO *xorriso, char *iso_rr_path, int flag);
|
||
|
|
||
|
/* Option -cdx */
|
||
|
int Xorriso_option_cdx(struct XorrisO *xorriso, char *disk_path, int flag);
|
||
|
|
||
|
/* Option -chgrp alias -chgrpi */
|
||
|
int Xorriso_option_chgrpi(struct XorrisO *xorriso, char *gid, char *path,
|
||
|
int argc, char **argv, int *idx, int flag);
|
||
|
|
||
|
/* Option -chmod alias -chmodi */
|
||
|
int Xorriso_option_chmodi(struct XorrisO *xorriso, char *mode, char *path,
|
||
|
int argc, char **argv, int *idx, int flag);
|
||
|
|
||
|
/* Option -chown alias -chowni */
|
||
|
int Xorriso_option_chowni(struct XorrisO *xorriso, char *uid, char *path,
|
||
|
int argc, char **argv, int *idx, int flag);
|
||
|
|
||
|
/* Option -close "on"|"off" */
|
||
|
int Xorriso_option_close(struct XorrisO *xorriso, char *mode, int flag);
|
||
|
|
||
|
/* Option -commit */
|
||
|
int Xorriso_option_commit(struct XorrisO *xorriso, int flag);
|
||
|
|
||
|
/* Option -cp_r alias -cp_ri */
|
||
|
int Xorriso_option_cp_ri( struct XorrisO *xorriso, int argc, char **argv,
|
||
|
int *idx, int flag);
|
||
|
|
||
|
/* Option -cut_out */
|
||
|
int Xorriso_option_cut_out(struct XorrisO *xorriso, char *disk_path,
|
||
|
off_t startbyte, off_t bytecount, char *iso_rr_path, int flag);
|
||
|
|
||
|
/* Options -dev , -indev, -outdev */
|
||
|
/** @param flag bit0=use as indev , bit1= use as outdev */
|
||
|
int Xorriso_option_dev(struct XorrisO *xorriso, char *adr, int flag);
|
||
|
|
||
|
/* Option -devices */
|
||
|
int Xorriso_option_devices(struct XorrisO *xorriso, int flag);
|
||
|
|
||
|
/* Option -dialog "on"|"off" */
|
||
|
int Xorriso_option_dialog(struct XorrisO *xorriso, char *mode, int flag);
|
||
|
|
||
|
/* Option -dummy "on"|"off" */
|
||
|
int Xorriso_option_dummy(struct XorrisO *xorriso, char *mode, int flag);
|
||
|
|
||
|
/* Option -eject */
|
||
|
int Xorriso_option_eject(struct XorrisO *xorriso, char *which, int flag);
|
||
|
|
||
|
/* Option -end */
|
||
|
int Xorriso_option_end(struct XorrisO *xorriso, int flag);
|
||
|
|
||
|
/* Option -f */
|
||
|
int Xorriso_option_f(struct XorrisO *xorriso, int flag);
|
||
|
|
||
|
/* Option -fs */
|
||
|
int Xorriso_option_fs(struct XorrisO *xorriso, char *size, int flag);
|
||
|
|
||
|
/* Option -find alias -findi */
|
||
|
int Xorriso_option_findi(struct XorrisO *xorriso, char *pattern, int flag);
|
||
|
|
||
|
/* Option -findx */
|
||
|
int Xorriso_option_findx(struct XorrisO *xorriso, char *pattern, int flag);
|
||
|
|
||
|
/* Option -gid */
|
||
|
int Xorriso_option_gid(struct XorrisO *xorriso, char *gid, int flag);
|
||
|
|
||
|
/* Option -graft-points */
|
||
|
int Xorriso_option_graft_points(struct XorrisO *xorriso, int flag);
|
||
|
|
||
|
/* Option -help and part of -prog_help */
|
||
|
int Xorriso_option_help(struct XorrisO *xorriso, int flag);
|
||
|
|
||
|
/* Option -history */
|
||
|
int Xorriso_option_history(struct XorrisO *xorriso, char *line, int flag);
|
||
|
|
||
|
/* Option -J */
|
||
|
int Xorriso_option_j_capital(struct XorrisO *xorriso, int flag);
|
||
|
|
||
|
/* Options -ls alias -lsi and ls_l alias ls_li */
|
||
|
/* @param flag bit0= long format (-ls_l) */
|
||
|
int Xorriso_option_lsi(struct XorrisO *xorriso, char *pattern, int flag);
|
||
|
|
||
|
/* Options -lsx and -ls_lx */
|
||
|
/* @param flag bit0= long format (-ls_l) */
|
||
|
int Xorriso_option_lsi(struct XorrisO *xorriso, char *pattern, int flag);
|
||
|
|
||
|
/* Option -logfile */
|
||
|
int Xorriso_option_logfile(struct XorrisO *xorriso, char *channel,
|
||
|
char *fileadr, int flag);
|
||
|
|
||
|
/* Option -mark */
|
||
|
int Xorriso_option_mark(struct XorrisO *xorriso, char *mark, int flag);
|
||
|
|
||
|
/* Option -mkdir alias -mkdiri */
|
||
|
int Xorriso_option_mkdiri(struct XorrisO *xorriso, int argc, char **argv,
|
||
|
int *idx, int flag);
|
||
|
|
||
|
/* Option -mv alias -mvi */
|
||
|
int Xorriso_option_mvi(struct XorrisO *xorriso, int argc, char **argv,
|
||
|
int *idx, int flag);
|
||
|
|
||
|
/* Option -no_rc */
|
||
|
int Xorriso_option_no_rc(struct XorrisO *xorriso, int flag);
|
||
|
|
||
|
/* Option -options_from_file*/
|
||
|
/* @return <=0 error , 1 = success , 3 = request to end program run */
|
||
|
int Xorriso_option_options_from_file(struct XorrisO *xorriso, char *adr,
|
||
|
int flag);
|
||
|
|
||
|
/* Option -overwrite "on"|"off" */
|
||
|
int Xorriso_option_overwrite(struct XorrisO *xorriso, char *mode, int flag);
|
||
|
|
||
|
/* Option -page */
|
||
|
int Xorriso_option_page(struct XorrisO *xorriso, int len, int width, int flag);
|
||
|
|
||
|
/* Option -path-list */
|
||
|
int Xorriso_option_path_list(struct XorrisO *xorriso, char *adr, int flag);
|
||
|
|
||
|
/* Option -pkt_output */
|
||
|
int Xorriso_option_pkt_output(struct XorrisO *xorriso, char *mode, int flag);
|
||
|
|
||
|
/* Option -print */
|
||
|
int Xorriso_option_print(struct XorrisO *xorriso, char *text, int flag);
|
||
|
|
||
|
/* Option -print-size */
|
||
|
int Xorriso_option_print_size(struct XorrisO *xorriso, int flag);
|
||
|
|
||
|
/* Option -prog */
|
||
|
int Xorriso_option_prog(struct XorrisO *xorriso, char *name, int flag);
|
||
|
|
||
|
/* Option -prog_help */
|
||
|
int Xorriso_option_prog_help(struct XorrisO *xorriso, char *name, int flag);
|
||
|
|
||
|
/* Option -pwd alias -pwdi */
|
||
|
int Xorriso_option_pwdi(struct XorrisO *xorriso, int flag);
|
||
|
|
||
|
/* Option -pwdx */
|
||
|
int Xorriso_option_pwdx(struct XorrisO *xorriso, int flag);
|
||
|
|
||
|
/* Option -reassure "on"|"off" */
|
||
|
int Xorriso_option_reassure(struct XorrisO *xorriso, char *mode, int flag);
|
||
|
|
||
|
/* Options -rm alias -rmi , and -rm_r aias -rm_ri */
|
||
|
/* @param flag bit0=recursive */
|
||
|
int Xorriso_option_rmi(struct XorrisO *xorriso, int argc, char **argv,
|
||
|
int *idx, int flag);
|
||
|
|
||
|
/* Option -rmdir alias -rmdiri */
|
||
|
int Xorriso_option_rmdiri(struct XorrisO *xorriso, int argc, char **argv,
|
||
|
int *idx, int flag);
|
||
|
|
||
|
/* Option -rollback */
|
||
|
int Xorriso_option_rollback(struct XorrisO *xorriso, int flag);
|
||
|
|
||
|
/* Option -speed */
|
||
|
int Xorriso_option_speed(struct XorrisO *xorriso, char *speed, int flag);
|
||
|
|
||
|
/* Option -status */
|
||
|
int Xorriso_option_status(struct XorrisO *xorriso, char *mode, int flag);
|
||
|
|
||
|
/* Option -status_history_max */
|
||
|
int Xorriso_option_status_history_max(struct XorrisO *xorriso, int num1,
|
||
|
int flag);
|
||
|
|
||
|
/* Option -tell_media_space */
|
||
|
int Xorriso_option_tell_media_space(struct XorrisO *xorriso, int flag);
|
||
|
|
||
|
/* Option -toc */
|
||
|
int Xorriso_option_toc(struct XorrisO *xorriso, int flag);
|
||
|
|
||
|
/* Option -uid */
|
||
|
int Xorriso_option_use_readline(struct XorrisO *xorriso, char *uid, int flag);
|
||
|
|
||
|
/* Option -use_readline */
|
||
|
int Xorriso_option_use_readline(struct XorrisO *xorriso, char *mode, int flag);
|
||
|
|
||
|
/* Option -version */
|
||
|
int Xorriso_option_version(struct XorrisO *xorriso, int flag);
|
||
|
|
||
|
|
||
|
#endif /* Xorriso_includeD */
|
||
|
|
||
|
|