]> git.sur5r.net Git - bacula/bacula/commitdiff
ebl update
authorEric Bollengier <eric@eb.homelinux.org>
Tue, 20 Mar 2007 22:41:08 +0000 (22:41 +0000)
committerEric Bollengier <eric@eb.homelinux.org>
Tue, 20 Mar 2007 22:41:08 +0000 (22:41 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@4374 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/patches/testing/breg.c

index 261424fd4c94262b307849b2d824e8294e637686..88449991ed1505e98d53da173f96c626881d5104 100644 (file)
@@ -99,6 +99,17 @@ void free_bregexps(alist *bregexps)
    }
 }
 
+char *apply_bregexps(const char *fname, alist *bregexps)
+{
+   BREGEXP *elt;
+   char *ret = (char *) fname;
+   foreach_alist(elt, bregexps) {
+      ret = elt->replace(ret);
+   }
+   return ret;
+}
+
+
 bool BREGEXP::extract_regexp(const char *motif)
 {