]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/stored/stored.h
added WSACleanup(), corrected WSA_Init() (removed #ifdef)
[bacula/bacula] / bacula / src / stored / stored.h
index 28a1dcf8595eb68903dcb6b23e319cd53158c62e..21fbc6bee8977073987618d7d4e270a5edca61a5 100644 (file)
@@ -4,7 +4,7 @@
  *  Version $Id$
  */
 /*
-   Copyright (C) 2000, 2001, 2002 Kern Sibbald and John Walker
+   Copyright (C) 2000-2003 Kern Sibbald and John Walker
 
    This program is free software; you can redistribute it and/or
    modify it under the terms of the GNU General Public License as
 #ifndef __STORED_H_
 #define __STORED_H_
 
+#define STORAGE_DAEMON 1
+
+#ifdef HAVE_MTIO_H
+#include <mtio.h>
+#endif
+#ifdef HAVE_SYS_MTIO_H
 #include <sys/mtio.h>
+#endif
 #include "block.h"
 #include "record.h"
 #include "dev.h"
 #include "jcr.h"
 #include "protos.h"
 #ifdef HAVE_LIBZ
-#include <zlib.h>                     /* compression headers */
+#include <zlib.h>                    /* compression headers */
 #else
 #define uLongf uint32_t
 #endif
 
-extern char errmsg[];                /* general error message */
+extern STORES *me;                    /* "Global" daemon resource */
+extern bool forge_on;                /* proceed inspite of I/O errors */
+
+#ifdef debug_tracing
+extern int _rewind_dev(char *file, int line, DEVICE *dev);
+#define rewind_dev(d) _rewind_dev(__FILE__, __LINE__, (d))
+#endif
 
 #endif /* __STORED_H_ */