]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/win32/libwin32/protos.h
Restore win32 dir from Branch-5.2 and update it
[bacula/bacula] / bacula / src / win32 / libwin32 / protos.h
1 /*
2    Bacula(R) - The Network Backup Solution
3
4    Copyright (C) 2000-2018 Kern Sibbald
5
6    The original author of Bacula is Kern Sibbald, with contributions
7    from many others, a complete list can be found in the file AUTHORS.
8
9    You may use this file and others of this release according to the
10    license defined in the LICENSE file, which includes the Affero General
11    Public License, v3.0 ("AGPLv3") and some additional permissions and
12    terms pursuant to its AGPLv3 Section 7.
13
14    This notice must be preserved when any source code is
15    conveyed and/or propagated.
16
17    Bacula(R) is a registered trademark of Kern Sibbald.
18 */
19 /*
20  * Kern Sibbald, August 2007
21  *
22  */
23
24 #define log_error_message(msg) LogLastErrorMsg((msg), __FILE__, __LINE__)
25
26 extern int BaculaAppMain();
27 extern void LogLastErrorMsg(const char *msg, const char *fname, int lineno);
28
29 extern int BaculaMain(int argc, char *argv[]);
30 extern BOOL ReportStatus(DWORD state, DWORD exitcode, DWORD waithint);
31 extern void d_msg(const char *, int, int, const char *, ...);
32 extern char *bac_status(char *buf, int buf_len);
33
34
35 /* service.cpp */
36 bool postToBacula(UINT message, WPARAM wParam, LPARAM lParam);
37 bool isAService();
38 int installService(const char *svc);
39 int removeService();
40 int stopRunningBacula();
41 int baculaServiceMain();
42
43
44 /* Globals */
45 extern DWORD service_thread_id;
46 extern DWORD service_error;
47 extern bool opt_debug;
48 extern bool have_service_api;
49 extern HINSTANCE appInstance;
50 extern int bacstat;