diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2021-01-27 16:07:31 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2021-01-27 16:07:31 +0000 |
commit | adfd78d2ce2ac3feab8926823ec6349d79a83437 (patch) | |
tree | c876cb9bf2908ca4082c65f20a380b1e13172e44 /exclude.cc | |
parent | Adding upstream version 0.17. (diff) | |
download | tarlz-adfd78d2ce2ac3feab8926823ec6349d79a83437.tar.xz tarlz-adfd78d2ce2ac3feab8926823ec6349d79a83437.zip |
Adding upstream version 0.19.upstream/0.19
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'exclude.cc')
-rw-r--r-- | exclude.cc | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1,5 +1,5 @@ /* Tarlz - Archiver with multimember lzip compression - Copyright (C) 2013-2020 Antonio Diaz Diaz. + Copyright (C) 2013-2021 Antonio Diaz Diaz. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -23,7 +23,7 @@ #include <string> #include <vector> #include <fnmatch.h> -#include <pthread.h> +#include <pthread.h> // for tarlz.h #include <stdint.h> #include "tarlz.h" @@ -39,6 +39,8 @@ std::vector< std::string > patterns; // list of patterns void Exclude::add_pattern( const std::string & arg ) { patterns.push_back( arg ); } +void Exclude::clear() { patterns.clear(); } + bool Exclude::excluded( const char * const filename ) { |