xorriso  1.5.4.pl02
About: GNU xorriso creates, loads, manipulates and writes ISO 9660 filesystem images with Rock Ridge extensions. It is suitable for incremental data backup and for production of bootable ISO 9660 images. GNU xorriso is a statical compilation of the libraries libburn, libisofs, libisoburn, and libjte.
  Fossies Dox: xorriso-1.5.4.pl02.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

aux_objects.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  Xorriso_lsT
 

Macros

#define Xorriso_pvt_auxobj_includeD   yes
 

Functions

int Splitparts_new (struct SplitparT **o, int count, int flag)
 
int Splitparts_destroy (struct SplitparT **o, int count, int flag)
 
int Splitparts_set (struct SplitparT *o, int idx, char *name, int partno, int total_parts, off_t offset, off_t bytes, off_t total_bytes, int flag)
 
int Splitparts_get (struct SplitparT *o, int idx, char **name, int *partno, int *total_parts, off_t *offset, off_t *bytes, off_t *total_bytes, int flag)
 
int Splitpart__parse (char *name, int *partno, int *total_parts, off_t *offset, off_t *bytes, off_t *total_bytes, int flag)
 
int Splitpart__is_part_path (char *path, int flag)
 
int Splitpart__compose (char *adr, int partno, int total_parts, off_t offset, off_t bytes, off_t total_bytes, int flag)
 
int Splitpart__read_next_num (char *base_pt, char **next_pt, off_t *num, int flag)
 
int Splitparts_sort (struct SplitparT *o, int count, int flag)
 
int Dirseq_new (struct DirseQ **o, char *adr, int flag)
 
int Dirseq_destroy (struct DirseQ **o, int flag)
 
int Dirseq_next_adr (struct DirseQ *o, char reply[SfileadrL], int flag)
 
int Dirseq_rewind (struct DirseQ *o, int flag)
 
int Xorriso_lst_new_binary (struct Xorriso_lsT **lstring, char *data, int data_len, struct Xorriso_lsT *link, int flag)
 
int Xorriso_lst_new (struct Xorriso_lsT **lstring, char *text, struct Xorriso_lsT *link, int flag)
 
int Xorriso_lst_append_binary (struct Xorriso_lsT **entry, char *data, int data_len, int flag)
 
int Xorriso_lst_destroy (struct Xorriso_lsT **lstring, int flag)
 
struct Xorriso_lsTXorriso_lst_get_next (struct Xorriso_lsT *entry, int flag)
 
struct Xorriso_lsTXorriso_lst_get_prev (struct Xorriso_lsT *entry, int flag)
 
char * Xorriso_lst_get_text (struct Xorriso_lsT *entry, int flag)
 
int Xorriso_lst_detach_text (struct Xorriso_lsT *entry, int flag)
 
int Xorriso_lst_get_last (struct Xorriso_lsT *entry, struct Xorriso_lsT **last, int flag)
 
int Xorriso_lst_concat (struct Xorriso_lsT *first, struct Xorriso_lsT *second, int flag)
 
int Exclusions_new (struct ExclusionS **o, int flag)
 
int Exclusions_destroy (struct ExclusionS **o, int flag)
 
int Exclusions_get_descrs (struct ExclusionS *o, struct Xorriso_lsT **not_paths_descr, struct Xorriso_lsT **not_leafs_descr, int flag)
 
int Exclusions_match (struct ExclusionS *o, char *abs_path, int flag)
 
int Exclusions_add_not_leafs (struct ExclusionS *o, char *not_leafs_descr, regex_t *re, int flag)
 
int Exclusions_add_not_paths (struct ExclusionS *o, int descrc, char **descrs, int pathc, char **paths, int flag)
 
int Linkitem_new (struct LinkiteM **o, char *link_path, dev_t target_dev, ino_t target_ino, struct LinkiteM *next, int flag)
 
int Linkitem_destroy (struct LinkiteM **o, int flag)
 
int Linkitem_reset_stack (struct LinkiteM **o, struct LinkiteM *to, int flag)
 
int Linkitem_find (struct LinkiteM *stack, dev_t target_dev, ino_t target_ino, struct LinkiteM **result, int flag)
 
int Linkitem_get_link_count (struct LinkiteM *item, int flag)
 
int Permstack_push (struct PermiteM **o, char *disk_path, struct stat *stbuf, int flag)
 
int Permstack_pop (struct PermiteM **o, struct PermiteM *stopper, struct XorrisO *xorriso, int flag)
 

Macro Definition Documentation

◆ Xorriso_pvt_auxobj_includeD

#define Xorriso_pvt_auxobj_includeD   yes

Definition at line 25 of file aux_objects.h.

Function Documentation

◆ Dirseq_destroy()

int Dirseq_destroy ( struct DirseQ **  o,
int  flag 
)

◆ Dirseq_new()

◆ Dirseq_next_adr()

int Dirseq_next_adr ( struct DirseQ o,
char  reply[SfileadrL],
int  flag 
)

◆ Dirseq_rewind()

int Dirseq_rewind ( struct DirseQ o,
int  flag 
)

Definition at line 377 of file aux_objects.c.

References DirseQ::dirpt.

Referenced by Xorriso_show_dux_subs().

◆ Exclusions_add_not_leafs()

int Exclusions_add_not_leafs ( struct ExclusionS o,
char *  not_leafs_descr,
regex_t *  re,
int  flag 
)

◆ Exclusions_add_not_paths()

int Exclusions_add_not_paths ( struct ExclusionS o,
int  descrc,
char **  descrs,
int  pathc,
char **  paths,
int  flag 
)

◆ Exclusions_destroy()

int Exclusions_destroy ( struct ExclusionS **  o,
int  flag 
)

◆ Exclusions_get_descrs()

int Exclusions_get_descrs ( struct ExclusionS o,
struct Xorriso_lsT **  not_paths_descr,
struct Xorriso_lsT **  not_leafs_descr,
int  flag 
)

Definition at line 836 of file aux_objects.c.

References ExclusionS::not_leafs_descr, and ExclusionS::not_paths_descr.

Referenced by Xorriso_status().

◆ Exclusions_match()

int Exclusions_match ( struct ExclusionS o,
char *  abs_path,
int  flag 
)

◆ Exclusions_new()

int Exclusions_new ( struct ExclusionS **  o,
int  flag 
)

◆ Linkitem_destroy()

int Linkitem_destroy ( struct LinkiteM **  o,
int  flag 
)

Definition at line 883 of file aux_objects.c.

Referenced by Linkitem_new(), and Linkitem_reset_stack().

◆ Linkitem_find()

int Linkitem_find ( struct LinkiteM stack,
dev_t  target_dev,
ino_t  target_ino,
struct LinkiteM **  result,
int  flag 
)

Definition at line 915 of file aux_objects.c.

References LinkiteM::next, LinkiteM::target_dev, and LinkiteM::target_ino.

Referenced by Xorriso_hop_link().

◆ Linkitem_get_link_count()

int Linkitem_get_link_count ( struct LinkiteM item,
int  flag 
)

Definition at line 930 of file aux_objects.c.

References LinkiteM::link_count.

Referenced by Xorriso_hop_link().

◆ Linkitem_new()

int Linkitem_new ( struct LinkiteM **  o,
char *  link_path,
dev_t  target_dev,
ino_t  target_ino,
struct LinkiteM next,
int  flag 
)

◆ Linkitem_reset_stack()

int Linkitem_reset_stack ( struct LinkiteM **  o,
struct LinkiteM to,
int  flag 
)

◆ Permstack_pop()

◆ Permstack_push()

int Permstack_push ( struct PermiteM **  o,
char *  disk_path,
struct stat *  stbuf,
int  flag 
)

◆ Splitpart__compose()

int Splitpart__compose ( char *  adr,
int  partno,
int  total_parts,
off_t  offset,
off_t  bytes,
off_t  total_bytes,
int  flag 
)

Definition at line 218 of file aux_objects.c.

References Sfile_off_t_text(), and Splitpart_wordS.

Referenced by Xorriso_graft_split(), and Xorriso_update_interpreter().

◆ Splitpart__is_part_path()

int Splitpart__is_part_path ( char *  path,
int  flag 
)

Definition at line 199 of file aux_objects.c.

References Splitpart__parse().

◆ Splitpart__parse()

int Splitpart__parse ( char *  name,
int *  partno,
int *  total_parts,
off_t *  offset,
off_t *  bytes,
off_t *  total_bytes,
int  flag 
)

Definition at line 153 of file aux_objects.c.

References Splitpart__read_next_num(), and Splitpart_wordS.

Referenced by Splitpart__is_part_path(), and Xorriso_identify_split().

◆ Splitpart__read_next_num()

int Splitpart__read_next_num ( char *  base_pt,
char **  next_pt,
off_t *  num,
int  flag 
)

Definition at line 129 of file aux_objects.c.

References Scanf_io_size().

Referenced by Splitpart__parse().

◆ Splitparts_destroy()

int Splitparts_destroy ( struct SplitparT **  o,
int  count,
int  flag 
)

◆ Splitparts_get()

int Splitparts_get ( struct SplitparT o,
int  idx,
char **  name,
int *  partno,
int *  total_parts,
off_t *  offset,
off_t *  bytes,
off_t *  total_bytes,
int  flag 
)

◆ Splitparts_new()

int Splitparts_new ( struct SplitparT **  o,
int  count,
int  flag 
)

Definition at line 62 of file aux_objects.c.

References TSOB_FELD.

Referenced by Xorriso_identify_split().

◆ Splitparts_set()

int Splitparts_set ( struct SplitparT o,
int  idx,
char *  name,
int  partno,
int  total_parts,
off_t  offset,
off_t  bytes,
off_t  total_bytes,
int  flag 
)

◆ Splitparts_sort()

int Splitparts_sort ( struct SplitparT o,
int  count,
int  flag 
)

Definition at line 259 of file aux_objects.c.

References Splitparts_cmp().

Referenced by Xorriso_identify_split().

◆ Xorriso_lst_append_binary()

int Xorriso_lst_append_binary ( struct Xorriso_lsT **  entry,
char *  data,
int  data_len,
int  flag 
)

Create a new list item at the end of a given list.

Parameters
entryContains as input a pointer to a pointer to any existing list item. As output this list item pointer may be changed to the address of the new list item: if ((*entry == 0) || (flag & 1))
dataAn array of bytes to be copied into the new object
data_lenNumber of bytes to be copied
flagBitfield for control purposes bit0= Return new object address in *entry bit1= do not copy data (e.g. because *data is invalid) bit2= attach data directly by pointer rather than by copying
Returns
<=0 error, 1 ok

Definition at line 609 of file aux_objects.c.

References Xorriso_lsT::next, and Xorriso_lst_new_binary().

Referenced by Exclusions_add_not_leafs(), Xorriso_external_filter(), Xorriso_option_map_l(), Xorriso_restore(), and Xorriso_write_to_msglist().

◆ Xorriso_lst_concat()

int Xorriso_lst_concat ( struct Xorriso_lsT first,
struct Xorriso_lsT second,
int  flag 
)

Definition at line 659 of file aux_objects.c.

References Xorriso_lsT::next, Xorriso_lsT::prev, and Xorriso_lst_get_last().

Referenced by Xorriso_pull_outlists().

◆ Xorriso_lst_destroy()

int Xorriso_lst_destroy ( struct Xorriso_lsT **  lstring,
int  flag 
)

Destroy a single list item and connect its eventual list neighbors.

Parameters
lstringpointer to the pointer to be freed and set to NULL
flagunused yet, submit 0
Returns
0= *lstring was already NULL, 1= ok

Definition at line 571 of file aux_objects.c.

References Xorriso_lsT::next, Xorriso_lsT::prev, Smem_freE, and Xorriso_lsT::text.

Referenced by Exclusions_destroy(), Xorriso_destroy_all_extf(), Xorriso_dialog_input(), Xorriso_external_filter(), Xorriso_lst_destroy_all(), Xorriso_lst_new_binary(), and Xorriso_sieve_filter_msg().

◆ Xorriso_lst_detach_text()

int Xorriso_lst_detach_text ( struct Xorriso_lsT entry,
int  flag 
)

Definition at line 642 of file aux_objects.c.

References Xorriso_lsT::text.

Referenced by Xorriso_destroy_all_extf(), and Xorriso_external_filter().

◆ Xorriso_lst_get_last()

int Xorriso_lst_get_last ( struct Xorriso_lsT entry,
struct Xorriso_lsT **  last,
int  flag 
)

Definition at line 649 of file aux_objects.c.

References Xorriso_lsT::next.

Referenced by Xorriso_lst_concat(), and Xorriso_status().

◆ Xorriso_lst_get_next()

struct Xorriso_lsT* Xorriso_lst_get_next ( struct Xorriso_lsT entry,
int  flag 
)

Definition at line 624 of file aux_objects.c.

◆ Xorriso_lst_get_prev()

struct Xorriso_lsT* Xorriso_lst_get_prev ( struct Xorriso_lsT entry,
int  flag 
)

Definition at line 630 of file aux_objects.c.

◆ Xorriso_lst_get_text()

char* Xorriso_lst_get_text ( struct Xorriso_lsT entry,
int  flag 
)

Definition at line 636 of file aux_objects.c.

◆ Xorriso_lst_new()

int Xorriso_lst_new ( struct Xorriso_lsT **  lstring,
char *  text,
struct Xorriso_lsT link,
int  flag 
)

Create a new list item with a 0-terminated text as content.

Parameters
lstringThe newly created object or NULL on failure
textA 0-terminated array of bytes
linkXorriso_lsT object to which the new object shall be linked
flagsee Xorriso_lst_new_binary
Returns
<=0 error, 1 ok

Definition at line 557 of file aux_objects.c.

References Xorriso_lsT::text, and Xorriso_lst_new_binary().

Referenced by Exclusions_add_not_paths(), Xorriso_jigdo_interpreter(), Xorriso_msg_op_parse_bulk(), Xorriso_named_pipe_loop(), Xorriso_new(), Xorriso_option_drive_class(), Xorriso_option_setfattr_listi(), Xorriso_option_update(), and Xorriso_sieve_filter_msg().

◆ Xorriso_lst_new_binary()

int Xorriso_lst_new_binary ( struct Xorriso_lsT **  lstring,
char *  data,
int  data_len,
struct Xorriso_lsT link,
int  flag 
)

Create a new list item with arbitrary byte content.

Parameters
lstringThe newly created object or NULL on failure
dataAn array of bytes to be copied into the new object
data_lenNumber of bytes to be copied
linkXorriso_lsT object to which the new object shall be linked
flagBitfield for control purposes bit0= insert before link rather than after it bit1= do not copy data (e.g. because *data is invalid) bit2= attach data directly by pointer rather than by copying
Returns
<=0 error, 1 ok

Definition at line 506 of file aux_objects.c.

References Xorriso_lsT::next, Xorriso_lsT::prev, Smem_malloC, Xorriso_lsT::text, TSOB_FELD, and Xorriso_lst_destroy().

Referenced by Xorriso_lst_append_binary(), and Xorriso_lst_new().