summaryrefslogtreecommitdiffstats
path: root/exclude.cc
diff options
context:
space:
mode:
Diffstat (limited to 'exclude.cc')
-rw-r--r--exclude.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/exclude.cc b/exclude.cc
index db8289f..a309436 100644
--- a/exclude.cc
+++ b/exclude.cc
@@ -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 )
{