libisoburn  1.5.4
About: libisoburn is a frontend for the libraries libburn and libisofs which enables creation and expansion of ISO-9660 filesystems on all media and file types supported by libburn. It implements the API and command interpreter of program xorriso, and installs this program as small dynamically linked binary. xorriso is suitable for incremental data backup and for production of bootable ISO 9660 images. A statically linked version is available as GNU xorriso.
  Fossies Dox: libisoburn-1.5.4.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

iso_tree.h
Go to the documentation of this file.
1 
2 /* xorriso - creates, loads, manipulates and burns ISO 9660 filesystem images.
3 
4  Copyright 2007-2016 Thomas Schmitt, <scdbackup@gmx.net>
5 
6  Provided under GPL version 2 or later.
7 
8  This file contains declarations of functions which access nodes of the
9  libisofs tree model.
10 */
11 
12 
13 #ifndef Xorriso_pvt_iso_tree_includeD
14 #define Xorriso_pvt_iso_tree_includeD yes
15 
16 
17 #define LIBISO_ISDIR(node) (iso_node_get_type(node) == LIBISO_DIR)
18 #define LIBISO_ISREG(node) (iso_node_get_type(node) == LIBISO_FILE)
19 #define LIBISO_ISLNK(node) (iso_node_get_type(node) == LIBISO_SYMLINK)
20 #define LIBISO_ISCHR(node) (iso_node_get_type(node) == LIBISO_SPECIAL && \
21  S_ISCHR(iso_node_get_mode(node)))
22 #define LIBISO_ISBLK(node) (iso_node_get_type(node) == LIBISO_SPECIAL && \
23  S_ISBLK(iso_node_get_mode(node)))
24 #define LIBISO_ISFIFO(node) (iso_node_get_type(node) == LIBISO_SPECIAL && \
25  S_ISFIFO(iso_node_get_mode(node)))
26 #define LIBISO_ISSOCK(node) (iso_node_get_type(node) == LIBISO_SPECIAL && \
27  S_ISSOCK(iso_node_get_mode(node)))
28 #define LIBISO_ISBOOT(node) (iso_node_get_type(node) == LIBISO_BOOT)
29 
30 
31 int Xorriso_node_from_path(struct XorrisO *xorriso, IsoImage *volume,
32  char *path, IsoNode **node, int flag);
33 
34 int Xorriso_get_node_by_path(struct XorrisO *xorriso,
35  char *in_path, char *eff_path,
36  IsoNode **node, int flag);
37 
38 int Xorriso_dir_from_path(struct XorrisO *xorriso, char *purpose,
39  char *path, IsoDir **dir_node, int flag);
40 
41 int Xorriso_node_get_dev(struct XorrisO *xorriso, IsoNode *node,
42  char *path, dev_t *dev, int flag);
43 
44 int Xorriso_fake_stbuf(struct XorrisO *xorriso, char *path, struct stat *stbuf,
45  IsoNode **node, int flag);
46 
47 int Xorriso_node_is_valid(struct XorrisO *xorriso, IsoNode *in_node, int flag);
48 
49 int Xorriso_path_from_node(struct XorrisO *xorriso, IsoNode *in_node,
50  char path[SfileadrL], int flag);
51 
52 int Xorriso_path_from_lba(struct XorrisO *xorriso, IsoNode *node, int lba,
53  char path[SfileadrL], int flag);
54 
55 int Xorriso_get_attr_value(struct XorrisO *xorriso, void *in_node, char *path,
56  char *name, size_t *value_length, char **value, int flag);
57 
58 int Xorriso_stream_type(struct XorrisO *xorriso, IsoNode *node,
59  IsoStream *stream, char type_text[], int flag);
60 
61 
62 int Xorriso_show_du_subs(struct XorrisO *xorriso, IsoDir *dir_node,
63  char *abs_path, char *rel_path, off_t *size,
64  off_t boss_mem, int flag);
65 
66 int Xorriso_sorted_dir_i(struct XorrisO *xorriso, IsoDir *dir_node,
67  int *filec, char ***filev, off_t boss_mem, int flag);
68 
70  struct XorrisO *xorriso, char *wd, IsoDir *dir,
71  int *filec, char **filev, int count_limit, off_t *mem,
72  int *dive_count, int flag);
73 
74 int Xorriso__start_end_lbas(IsoNode *node,
75  int *lba_count, int **start_lbas, int **end_lbas,
76  off_t **section_sizes, off_t *size, int flag);
77 
78 int Xorriso__file_start_lba(IsoNode *node,
79  int *lba, int flag);
80 
81 int Xorriso_file_eval_damage(struct XorrisO *xorriso, IsoNode *node,
82  off_t *damage_start, off_t *damage_end,
83  int flag);
84 
85 int Xorriso_report_lba(struct XorrisO *xorriso, char *show_path,
86  IsoNode *node, uint32_t *last_block, int flag);
87 
88 int Xorriso_report_damage(struct XorrisO *xorriso, char *show_path,
89  IsoNode *node, int flag);
90 
91 int Xorriso_getfname(struct XorrisO *xorriso, char *path, int flag);
92 
93 int Xorriso_retrieve_disk_path(struct XorrisO *xorriso, IsoNode *node,
94  char disk_path[SfileadrL], int flag);
95 
96 #endif /* ! Xorriso_pvt_iso_tree_includeD */
97 
#define SfileadrL
int Xorriso_sorted_dir_i(struct XorrisO *xorriso, IsoDir *dir_node, int *filec, char ***filev, off_t boss_mem, int flag)
Definition: iso_tree.c:1554
int Xorriso_show_du_subs(struct XorrisO *xorriso, IsoDir *dir_node, char *abs_path, char *rel_path, off_t *size, off_t boss_mem, int flag)
Definition: iso_tree.c:1415
int Xorriso_fake_stbuf(struct XorrisO *xorriso, char *path, struct stat *stbuf, IsoNode **node, int flag)
Definition: iso_tree.c:245
int Xorriso_report_lba(struct XorrisO *xorriso, char *show_path, IsoNode *node, uint32_t *last_block, int flag)
Definition: iso_tree.c:2529
int Xorriso_dir_from_path(struct XorrisO *xorriso, char *purpose, char *path, IsoDir **dir_node, int flag)
Definition: iso_tree.c:2687
int Xorriso__file_start_lba(IsoNode *node, int *lba, int flag)
Definition: iso_tree.c:2259
int Xorriso_getfname(struct XorrisO *xorriso, char *path, int flag)
Definition: iso_tree.c:2719
int Xorriso_get_attr_value(struct XorrisO *xorriso, void *in_node, char *path, char *name, size_t *value_length, char **value, int flag)
Definition: iso_tree.c:1263
int Xorriso_node_from_path(struct XorrisO *xorriso, IsoImage *volume, char *path, IsoNode **node, int flag)
Definition: iso_tree.c:2650
int Xorriso_retrieve_disk_path(struct XorrisO *xorriso, IsoNode *node, char disk_path[SfileadrL], int flag)
int Xorriso_obtain_pattern_files_i(struct XorrisO *xorriso, char *wd, IsoDir *dir, int *filec, char **filev, int count_limit, off_t *mem, int *dive_count, int flag)
Definition: iso_tree.c:2014
int Xorriso_report_damage(struct XorrisO *xorriso, char *show_path, IsoNode *node, int flag)
Definition: iso_tree.c:2570
int Xorriso_path_from_node(struct XorrisO *xorriso, IsoNode *in_node, char path[SfileadrL], int flag)
int Xorriso_file_eval_damage(struct XorrisO *xorriso, IsoNode *node, off_t *damage_start, off_t *damage_end, int flag)
Definition: iso_tree.c:2477
int Xorriso_node_get_dev(struct XorrisO *xorriso, IsoNode *node, char *path, dev_t *dev, int flag)
Definition: iso_tree.c:229
int Xorriso__start_end_lbas(IsoNode *node, int *lba_count, int **start_lbas, int **end_lbas, off_t **section_sizes, off_t *size, int flag)
Definition: iso_tree.c:2210
int Xorriso_node_is_valid(struct XorrisO *xorriso, IsoNode *in_node, int flag)
Definition: iso_tree.c:384
int Xorriso_get_node_by_path(struct XorrisO *xorriso, char *in_path, char *eff_path, IsoNode **node, int flag)
Definition: iso_tree.c:199
int Xorriso_path_from_lba(struct XorrisO *xorriso, IsoNode *node, int lba, char path[SfileadrL], int flag)
int Xorriso_stream_type(struct XorrisO *xorriso, IsoNode *node, IsoStream *stream, char type_text[], int flag)
Definition: iso_tree.c:1296