]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/patches/testing/breg.h
ebl fix compilation bug
[bacula/bacula] / bacula / patches / testing / breg.h
index 991ad5a2d3c8d77798a1dde7286fcd79b332215d..9c1e50a8c7d6c0dbc4dbafa7cf3f5ecabc817090 100644 (file)
@@ -98,4 +98,22 @@ bool apply_bregexps(const char *fname, alist *bregexps, char **result);
 /* foreach_alist free RUNSCRIPT */
 void free_bregexps(alist *bregexps); /* you have to free alist */
 
+/* get regexp size */
+int bregexp_get_build_where_size(char *strip_prefix, 
+                                char *add_prefix, 
+                                char *add_suffix);
+
+/* get a bregexp string from user arguments 
+ * you must allocate it with bregexp_get_build_where_size();
+ */
+char *bregexp_build_where(char *dest, int str_size,
+                         char *strip_prefix, 
+                          char *add_prefix, 
+                          char *add_suffix);
+
+/* escape a string to regexp format (sep and \) 
+ * dest must be long enough (dest = 2*src + 1)
+ */
+char *bregexp_escape_string(char *dest, char *src, char sep);
+
 #endif /* __BREG_H_ */