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)  

match.h
Go to the documentation of this file.
1 
2 /* xorriso - creates, loads, manipulates and burns ISO 9660 filesystem images.
3 
4  Copyright 2007-2010 Thomas Schmitt, <scdbackup@gmx.net>
5 
6  Provided under GPL version 2 or later.
7 
8  This file contains the implementation of functions for pattern matching.
9 */
10 
11 
12 #ifndef Xorriso_pvt_match_includeD
13 #define Xorriso_pvt_match_includeD yes
14 
15 
16 int Xorriso_prepare_regex(struct XorrisO *xorriso, char *adr, int flag);
17 
18 /* @return 0=match , else no match
19 */
20 int Xorriso_regexec(struct XorrisO *xorriso, char *to_match, int *failed_at,
21  int flag);
22 
23 int Xorriso_is_in_patternlist(struct XorrisO *xorriso,
24  struct Xorriso_lsT *patternlist, char *path, int flag);
25 
26 char *Xorriso_get_pattern(struct XorrisO *xorriso,
27  struct Xorriso_lsT *patternlist, int index, int flag);
28 
29 int Xorriso_prepare_expansion_pattern(struct XorrisO *xorriso, char *pattern,
30  int flag);
31 
32 /* @param flag bit0= count results rather than storing them
33  @return <=0 error , 1 is root (end processing) ,
34  2 is not root (go on processing)
35 */
36 int Xorriso_check_for_root_pattern(struct XorrisO *xorriso,
37  int *filec, char **filev, int count_limit, off_t *mem, int flag);
38 
39 /* @param flag bit0= count result rather than storing it
40  bit1= unexpected change of number is a FATAL event
41 */
42 int Xorriso_register_matched_adr(struct XorrisO *xorriso,
43  char *adr, int count_limit,
44  int *filec, char **filev, off_t *mem, int flag);
45 
46 int Xorriso_eval_nonmatch(struct XorrisO *xorriso, char *pattern,
47  int *nonconst_mismatches, off_t *mem, int flag);
48 
49 /* @param flag bit0= a match count !=1 is a SORRY event
50 */
51 int Xorriso_check_matchcount(struct XorrisO *xorriso,
52  int count, int nonconst_mismatches, int num_patterns,
53  char **patterns, int flag);
54 
55 int Xorriso_no_pattern_memory(struct XorrisO *xorriso, off_t mem, int flag);
56 
57 int Xorriso_alloc_pattern_mem(struct XorrisO *xorriso, off_t mem,
58  int count, char ***filev, int flag);
59 
60 /* @param flag bit0= command without pattern capability
61  bit1= disk_pattern rather than iso_rr_pattern
62 */
63 int Xorriso_warn_of_wildcards(struct XorrisO *xorriso, char *path, int flag);
64 
65 /* @param flag bit0= a match count !=1 is a FAILURE event
66  bit1= with bit0 tolerate 0 matches if pattern is a constant
67 */
68 int Xorriso_expand_disk_pattern(struct XorrisO *xorriso,
69  int num_patterns, char **patterns, int extra_filec,
70  int *filec, char ***filev, off_t *mem, int flag);
71 
72 
73 #endif /* ! Xorriso_pvt_match_includeD */
74 
int Xorriso_expand_disk_pattern(struct XorrisO *xorriso, int num_patterns, char **patterns, int extra_filec, int *filec, char ***filev, off_t *mem, int flag)
Definition: match.c:641
int Xorriso_register_matched_adr(struct XorrisO *xorriso, char *adr, int count_limit, int *filec, char **filev, off_t *mem, int flag)
Definition: match.c:396
int Xorriso_prepare_regex(struct XorrisO *xorriso, char *adr, int flag)
Definition: match.c:38
char * Xorriso_get_pattern(struct XorrisO *xorriso, struct Xorriso_lsT *patternlist, int index, int flag)
Definition: match.c:321
int Xorriso_no_pattern_memory(struct XorrisO *xorriso, off_t mem, int flag)
Definition: match.c:596
int Xorriso_is_in_patternlist(struct XorrisO *xorriso, struct Xorriso_lsT *patternlist, char *path, int flag)
Definition: match.c:297
int Xorriso_check_matchcount(struct XorrisO *xorriso, int count, int nonconst_mismatches, int num_patterns, char **patterns, int flag)
Definition: match.c:574
int Xorriso_check_for_root_pattern(struct XorrisO *xorriso, int *filec, char **filev, int count_limit, off_t *mem, int flag)
Definition: match.c:364
int Xorriso_warn_of_wildcards(struct XorrisO *xorriso, char *path, int flag)
Definition: match.c:764
int Xorriso_regexec(struct XorrisO *xorriso, char *to_match, int *failed_at, int flag)
Definition: match.c:225
int Xorriso_alloc_pattern_mem(struct XorrisO *xorriso, off_t mem, int count, char ***filev, int flag)
Definition: match.c:609
int Xorriso_prepare_expansion_pattern(struct XorrisO *xorriso, char *pattern, int flag)
Definition: match.c:339
int Xorriso_eval_nonmatch(struct XorrisO *xorriso, char *pattern, int *nonconst_mismatches, off_t *mem, int flag)
Definition: match.c:548