lintian doesn't like orphan packages with uploaders...
[debian/amanda] / perl / Amanda / Cmdline.swg
index 678443867fab80019b1f9aadca43a1ff7d650334..1ce96563917d347f7fd21acc55e923c5260dfd31 100644 (file)
@@ -1,9 +1,10 @@
 /*
- * Copyright (c) 2007,2008,2009 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
@@ -39,12 +40,13 @@ typedef struct dumpspec_t {
     char *disk;
     char *datestamp;
     char *level;
+    char *write_timestamp;
     %mutable;
 
     %extend {
        /* constructor */
-       dumpspec_t(char *host, char *disk, char *datestamp, char *level) {
-           return dumpspec_new(host, disk, datestamp, level);
+       dumpspec_t(char *host, char *disk, char *datestamp, char *level, char *write_timestamp) {
+           return dumpspec_new(host, disk, datestamp, level, write_timestamp);
        }
 
        ~dumpspec_t() {
@@ -93,6 +95,8 @@ amglue_add_flag_tag_fns(cmdline_parse_dumpspecs_flags);
 amglue_add_constant(CMDLINE_PARSE_DATESTAMP, cmdline_parse_dumpspecs_flags);
 amglue_add_constant(CMDLINE_PARSE_LEVEL, cmdline_parse_dumpspecs_flags);
 amglue_add_constant(CMDLINE_EMPTY_TO_WILDCARD, cmdline_parse_dumpspecs_flags);
+amglue_add_constant(CMDLINE_EXACT_MATCH, cmdline_parse_dumpspecs_flags);
+amglue_copy_to_tag(cmdline_parse_dumpspecs_flags, constants);
 
 %rename(parse_dumpspecs) cmdline_parse_dumpspecs;
 amglue_dumpspec_list *cmdline_parse_dumpspecs(int argc, char **argv, int flags);
@@ -141,4 +145,4 @@ gboolean header_matches_dumpspecs(dumpfile_t *dumpfile, amglue_dumpspec_list *du
 }
 %}
 
-amglue_export_ok(header_matches_dumpspecs);
+amglue_export_ok(header_matches_dumpspecs parse_dumpspecs format_dumpspec_components);