/*
- * Copyright (c) 2007, 2008, 2009, 2010 Zmanda, Inc. All Rights Reserved.
+ * Copyright (c) 2007-2012 Zmanda, Inc. All Rights Reserved.
*
- * This program is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 2 as published
- * by the Free Software Foundation.
+ * 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 the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
for (iter = $1; *iter; iter++) {
$result = sv_2mortal(newSVpv(*iter, 0));
+ g_free(*iter);
argvi++;
}
+ g_free($1);
}
}
%}
amglue_export_tag(encoding, hexencode hexdecode);
+%newobject sanitise_filename;
char *sanitise_filename(char *inp);
+%newobject quote_string;
char *quote_string(char *);
+%newobject unquote_string;
char *unquote_string(char *);
GPtrArray *expand_braced_alternates(char *);
%newobject collapse_braced_alternates;
char *collapse_braced_alternates(GPtrArray *source);
+%newobject split_quoted_strings;
gchar **split_quoted_strings(const gchar *string);
amglue_export_tag(quoting, quote_string unquote_string skip_quoted_string
sanitise_filename split_quoted_strings split_quoted_strings_friendly);
typedef struct file_lock {
%extend {
+ %newobject file_lock;
file_lock(const char *filename) {
return file_lock_new(filename);
}
%}
+amglue_export_ok(
+ match_host match_disk match_datestamp match_level
+);
+
+gboolean match_host(char *pat, char *value);
+gboolean match_disk(char *pat, char *value);
+gboolean match_datestamp(char *pat, char *value);
+gboolean match_level(char *pat, char *value);
+
+
/* -------------------------------------------------------------------------
* Functions below this line are only meant to be called within this module;
* do not call them externally. */