]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/stored/stored.h
Use the command line utility dropdb instead of the psql command
[bacula/bacula] / bacula / src / stored / stored.h
index 7744daff6abcb911423d2b5428e3fdad5c232376..a74db4da166d406804aeb3aff2a17733824c1e26 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 "stored_conf.h"
+#include "bsr.h"
 #include "jcr.h"
 #include "protos.h"
+#ifdef HAVE_LIBZ
+#include <zlib.h>                     /* compression headers */
+#else
+#define uLongf uint32_t
+#endif
 
-/* **** FIXME make this dynamic ****/
-#define MAX_DEVICES 20
+extern char errmsg[];                 /* general error message */
 
-/* 
- * Old shared memory buffer. Shared memory no longer used,
- *  so this just acts as a global.
- */
-struct s_shm {
-   long VolSessionId;
-   long VolSessionTime;
-   DEVICE dev[MAX_DEVICES];
-};
+extern STORES *me;                    /* "Global" daemon resource */
 
-extern char errmsg[];               /* general error message */
+#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_ */