1 /*
2 Copyright (C) 2008-2021, Dirk Krause
3 SPDX-License-Identifier: BSD-3-Clause
4 */
5 
6 /*
7 	WARNING: This file was generated by the dkct program (see
8 	http://dktools.sourceforge.net/ for details).
9 	Changes you make here will be lost if dkct is run again!
10 	You should modify the original source and run dkct on it.
11 	Original source: rshdown.ctr
12 */
13 
14 #ifndef RSHDOWN_H_INCLUDED
15 /** Avoid multiple inclusions. */
16 #define RSHDOWN_H_INCLUDED 1
17 
18 
19 /**	@file	rshdown.h	Definitions for the rshdown program.
20 */
21 
22 #ifndef	DK4_CONF_H_INCLUDED
23 #include <dk4conf.h>
24 #endif
25 
26 #if	DK4_ON_WINDOWS
27 
28 #ifdef UNICODE
29 #undef UNICODE
30 #endif
31 #ifdef _UNICODE
32 #undef _UNICODE
33 #endif
34 #ifdef MBCS
35 #undef MBCS
36 #endif
37 #ifdef _MBCS
38 #undef MBCS
39 #endif
40 
41 
42 /*	NOTE: UNICODE and _UNICODE always must be set in conjunction!
43 	-------------------------------------------------------------
44 */
45 
46 /**	Set UNICODE as default for Windows header files.
47 	Generic TCHAR functions from Windows API are mapped to WCHAR, i.e.
48 	GetWindowText will map to GetWindowTextW.
49 */
50 #define UNICODE		1
51 
52 /**	Set UNICODE as default for C runtime library and MFC header files.
53 	Generic TCHAR functions from C runtime libraries are mapped
54 	to wchar_t, i.e. _tcslen will map to wcslen.
55 */
56 #define _UNICODE	1
57 
58 /**	Maximum number of attempts to stop service. */
59 #define RSHDOWN_MAX_ATTEMPTS_TO_STOP	10
60 
61 /**	Sleep time between attempts to receive UDP packet. */
62 #define RSHDOWN_STOP_SLEEP_TIME		1000
63 
64 /**	Wait time for shutdown. */
65 #define RSHDOWN_STOP_WAIT_HINT		1500
66 
67 /**	Buffer size to read configuration. */
68 #define RSHDOWN_BUFFER_SIZE		256
69 
70 /**	Data buffer size. */
71 #define RSHDOWN_DATA_BUFFER_SIZE	2048
72 
73 /**	Calculate size of a variable.
74 */
75 #define SIZEOF(v,t) (sizeof(v)/sizeof(t))
76 
77 #endif
78 
79 /* vim: set ai sw=4 ts=4 : */
80 
81 
82 
83 #endif
84