]> git.sur5r.net Git - bacula/bacula/commitdiff
Tweak Win32 build
authorKern Sibbald <kern@sibbald.com>
Wed, 19 Apr 2006 20:49:26 +0000 (20:49 +0000)
committerKern Sibbald <kern@sibbald.com>
Wed, 19 Apr 2006 20:49:26 +0000 (20:49 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@2946 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/filed/win32/winmain.cpp
bacula/src/filed/win32/winservice.cpp
bacula/src/filed/win32/winservice.h
bacula/src/lib/crypto.c
bacula/src/lib/openssl.c
bacula/src/lib/tls.c

index a12030481a4d509f0b9c160981932b37b27cc2b6..2cda05ad2b52cf3e01cd44f68446827f1690de17 100755 (executable)
@@ -40,6 +40,7 @@ extern void d_msg(const char *, int, int, const char *, ...);
 HINSTANCE       hAppInstance;
 const char      *szAppName = "Bacula";
 DWORD           mainthreadId;
+bool silent = false;
 
 /* Imported variables */
 extern DWORD    g_servicethread;
@@ -61,7 +62,6 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
    char *szCmdLine = CmdLine;
    char *wordPtr, *tempPtr;
    int i, quote;
-   bool silent = false;
 
    /* Save the application instance and main thread id */
    hAppInstance = hInstance;
@@ -182,14 +182,14 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
       /* /install */
       if (strncmp(&szCmdLine[i], BaculaInstallService, strlen(BaculaInstallService)) == 0) {
          /* Install Bacula as a service */
-         bacService::InstallService(silent);
+         bacService::InstallService();
          i += strlen(BaculaInstallService);
          continue;
       }
       /* /remove */
       if (strncmp(&szCmdLine[i], BaculaRemoveService, strlen(BaculaRemoveService)) == 0) {
          /* Remove the Bacula service */
-         bacService::RemoveService(silent);
+         bacService::RemoveService();
          i += strlen(BaculaRemoveService);
          continue;
       }
index 4d803e9ae0d367336d0aca49c998fe0c3fdc63e3..a1c7ddd009c2b2b6ac458d9ca61aaf8c04fa2a37 100755 (executable)
@@ -55,6 +55,7 @@ void set_service_description(SC_HANDLE hSCManager, SC_HANDLE hService,
 bacService init;
 
 extern DWORD   g_platform_id;
+extern bool    silent;
 
 bacService::bacService()
 {
@@ -343,7 +344,7 @@ void ServiceStop()
 
 // SERVICE INSTALL ROUTINE
 int
-bacService::InstallService(bool silent)
+bacService::InstallService()
 {
    const int pathlength = 2048;
    char path[pathlength];
@@ -484,7 +485,7 @@ _("Provides file backup and restore services. Bacula -- the network backup solut
 
 // SERVICE REMOVE ROUTINE
 int
-bacService::RemoveService(bool silent)
+bacService::RemoveService()
 {
    // How to remove the Bacula service depends upon the OS
    switch (g_platform_id) {
index 06622ca994c76f0365b1364cc410a1f1d16596f7..157dea3b18d94acf39fa36425073fd8c232a205c 100755 (executable)
@@ -52,13 +52,13 @@ public:
 
    // Routine called by WinMain to cause Bacula to be installed
    // as a service.
-   int BaculaServiceMain();
+   static int BaculaServiceMain();
 
    // Routine to install the Apcupsd service on the local machine
-   int InstallService(bool silent);
+   static int InstallService();
 
    // Routine to remove the Apcupsd service from the local machine
-   int RemoveService(bool silent);
+   static int RemoveService();
 
    // SERVICE SUPPORT FUNCTIONS
 
index 7cc359c2a375f1591d355b443978a6a205c41c76..c450b2bcaa3dc9d9b9124a6fd98c0dbf77d085eb 100644 (file)
@@ -19,7 +19,7 @@
  * license please contact Landon Fuller <landonf@opendarwin.org>.
  */
 /*
-   Copyright (C) 2005 Kern Sibbald
+   Copyright (C) 2005-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
index 929dee7c26e237d0df4f1a9cb6cafdc900708978..2cf1a3fd1aad45a348a01c7e1ea96494ef2331a7 100644 (file)
@@ -19,7 +19,7 @@
  * license please contact Landon Fuller <landonf@opendarwin.org>.
  */
 /*
-   Copyright (C) 2005 Kern Sibbald
+   Copyright (C) 2005-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
index 978e1aede9552ed239eb12c1d411501ed8dc873f..0f5c3d2084ad38109a153c86bc94fb2b76fc564d 100644 (file)
@@ -22,7 +22,7 @@
  * Landon Fuller <landonf@threerings.net>.
  */
 /*
-   Copyright (C) 2005 Kern Sibbald
+   Copyright (C) 2005-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