"Fossies" - the Fresh Open Source Software Archive 
Member "libisoburn-1.5.4/xorriso/iso_tree.h" (8 Jul 2020, 4050 Bytes) of package /linux/misc/libisoburn-1.5.4.tar.gz:
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style:
standard) with prefixed line numbers and
code folding option.
Alternatively you can here
view or
download the uninterpreted source code file.
For more information about "iso_tree.h" see the
Fossies "Dox" file reference documentation and the last
Fossies "Diffs" side-by-side code changes report:
1.4.2_vs_1.4.4.
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
69 int Xorriso_obtain_pattern_files_i(
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