"Fossies" - the Fresh Open Source Software Archive

Member "xorriso-1.5.4/xorriso/match.h" (30 Jan 2021, 2770 Bytes) of package /linux/misc/xorriso-1.5.4.pl02.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 "match.h" see the Fossies "Dox" file reference documentation.

    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