lintian doesn't like orphan packages with uploaders...
[debian/amanda] / server-src / server_util.h
index ffab5eab294eacd2f1301128a58986eb2aa24a62..075447816c116d502316218ed5d51acea5ae2303 100644 (file)
@@ -1,6 +1,7 @@
 /*
  * Amanda, The Advanced Maryland Automatic Network Disk Archiver
  * Copyright (c) 1991-1999 University of Maryland at College Park
+ * Copyright (c) 2007-2012 Zmanda, Inc.  All Rights Reserved.
  * All Rights Reserved.
  *
  * Permission to use, copy, modify, distribute, and sell this software and its
@@ -32,6 +33,7 @@
 
 #include "util.h"
 #include "diskfile.h"
+#include "infofile.h"
 
 #define MAX_ARGS 32
 
@@ -48,8 +50,8 @@ enum {
     START_TAPER, FILE_WRITE, NEW_TAPE, NO_NEW_TAPE,     /* taper... */
     PARTDONE, PORT_WRITE, DUMPER_STATUS,                /* ... cmds */
     PORT, TAPE_ERROR, TAPER_OK,                                /* taper results */
-    REQUEST_NEW_TAPE,
-    LAST_TOK
+    REQUEST_NEW_TAPE, DIRECTTCP_PORT, TAKE_SCRIBE_FROM,
+    START_SCAN, CLOSE_VOLUME, LAST_TOK
 };
 extern const char *cmdstr[];
 
@@ -82,12 +84,21 @@ void run_server_script(pp_script_t  *pp_script,
                       char         *config,
                       disk_t       *dp,
                       int           level);
-void run_server_scripts(execute_on_t  execute_on,
-                       char         *config,
-                       disk_t       *dp,
-                       int           level);
+void run_server_dle_scripts(execute_on_t  execute_on,
+                           char         *config,
+                           disk_t       *dp,
+                           int           level);
+void run_server_host_scripts(execute_on_t  execute_on,
+                            char         *config,
+                            am_host_t    *hostp);
+void run_server_global_scripts(execute_on_t  execute_on,
+                              char         *config);
 
 void run_amcleanup(char *config_name);
 char *get_master_process(char *logfile);
 
+gint64 internal_server_estimate(disk_t *dp, info_t *info,
+                                int level, int *stats);
+int server_can_do_estimate(disk_t *dp, info_t *info, int level);
+
 #endif /* SERVER_UTIL_H */