Kern Sibbald
General:
+26Apr06
+- Implement cross compiled bconsole
25Apr06
- Fix barcode test, eliminate BOOL (doesn't exist on Linux).
- Write first cut of README.mingw32
* Version $Id$
*/
/*
- Copyright (C) 2000-2005 Kern Sibbald
+ Copyright (C) 2000-2006 Kern Sibbald
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
/* Imported functions */
int authenticate_director(JCR *jcr, DIRRES *director, CONRES *cons);
-/* Dummy functions */
-int generate_daemon_event(JCR *jcr, const char *event) { return 1; }
-
/* Forward referenced functions */
static void terminate_console(int sig);
static int check_resources();
*
*/
/*
- Copyright (C) 2000-2005 Kern Sibbald
+ Copyright (C) 2000-2006 Kern Sibbald
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
/* Exported variables */
CLIENT *me; /* my resource */
-char OK_msg[] = "2000 OK\n";
-char TERM_msg[] = "2999 Terminate\n";
bool no_signals = false;
-#if defined(HAVE_CYGWIN) || defined(HAVE_WIN32)
-const int win32_client = 1;
-#else
-const int win32_client = 0;
-#endif
-
#define CONFIG_FILE "./bacula-fd.conf" /* default config file */
#define uLongf uint32_t
#endif
-extern const int win32_client; /* Are we running on Windows? */
+extern int win32_client; /* Are we running on Windows? */
extern CLIENT *me; /* "Global" Client resource */
res.c rwlock.c scan.c serial.c sha1.c \
semlock.c signal.c smartall.c tls.c tree.c \
util.c var.c watchdog.c workq.c btimers.c \
- address_conf.c pythonlib.c
+ address_conf.c pythonlib.c winapi.c
LIBOBJS = alloc.o attr.o base64.o berrno.o bsys.o bget_msg.o \
res.o rwlock.o scan.o serial.o sha1.o \
semlock.o signal.o smartall.o tls.o tree.o \
util.o var.o watchdog.o workq.o btimers.o \
- address_conf.o pythonlib.o
+ address_conf.o pythonlib.o winapi.o
EXTRAOBJS = @OBJLIST@
* Version $Id$
*/
/*
- Copyright (C) 2003-2005 Kern Sibbald
+ Copyright (C) 2003-2006 Kern Sibbald
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
#include "bacula.h"
#include "jcr.h"
-extern const int win32_client;
+extern int win32_client;
ATTR *new_attr()
{
*
*/
/*
- Copyright (C) 2001-2005 Kern Sibbald
+ Copyright (C) 2001-2006 Kern Sibbald
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
#include "bacula.h" /* pull in global headers */
-extern char OK_msg[];
-extern char TERM_msg[];
+static char OK_msg[] = "2000 OK\n";
+static char TERM_msg[] = "2999 Terminate\n";
#define msglvl 500
*
*/
/*
- Copyright (C) 2000-2005 Kern Sibbald
+ Copyright (C) 2000-2006 Kern Sibbald
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
FILE *con_fd = NULL; /* Console file descriptor */
brwlock_t con_lock; /* Console lock structure */
+
#ifdef HAVE_POSTGRESQL
char catalog_db[] = "PostgreSQL";
#else
#include "winapi.h"
+int win32_client = 1;
+
#ifdef WIN32_VSS
#include "vss.h"
#endif
#endif /* WIN32_VSS */
}
+#else
+
+/* Not Windows */
+int win32_client = 0;
+
#endif
#undef VERSION
#define VERSION "1.39.10"
-#define BDATE "25 April 2006"
-#define LSMDATE "25Apr06"
+#define BDATE "26 April 2006"
+#define LSMDATE "26Apr06"
/* Debug flags */
#undef DEBUG