/* Copyright (C) 2008-2021, Dirk Krause SPDX-License-Identifier: BSD-3-Clause */ /* WARNING: This file was generated by the dkct program (see http://dktools.sourceforge.net/ for details). Changes you make here will be lost if dkct is run again! You should modify the original source and run dkct on it. Original source: rshdown.ctr */ #ifndef RSHDOWN_H_INCLUDED /** Avoid multiple inclusions. */ #define RSHDOWN_H_INCLUDED 1 /** @file rshdown.h Definitions for the rshdown program. */ #ifndef DK4_CONF_H_INCLUDED #include #endif #if DK4_ON_WINDOWS #ifdef UNICODE #undef UNICODE #endif #ifdef _UNICODE #undef _UNICODE #endif #ifdef MBCS #undef MBCS #endif #ifdef _MBCS #undef MBCS #endif /* NOTE: UNICODE and _UNICODE always must be set in conjunction! ------------------------------------------------------------- */ /** Set UNICODE as default for Windows header files. Generic TCHAR functions from Windows API are mapped to WCHAR, i.e. GetWindowText will map to GetWindowTextW. */ #define UNICODE 1 /** Set UNICODE as default for C runtime library and MFC header files. Generic TCHAR functions from C runtime libraries are mapped to wchar_t, i.e. _tcslen will map to wcslen. */ #define _UNICODE 1 /** Maximum number of attempts to stop service. */ #define RSHDOWN_MAX_ATTEMPTS_TO_STOP 10 /** Sleep time between attempts to receive UDP packet. */ #define RSHDOWN_STOP_SLEEP_TIME 1000 /** Wait time for shutdown. */ #define RSHDOWN_STOP_WAIT_HINT 1500 /** Buffer size to read configuration. */ #define RSHDOWN_BUFFER_SIZE 256 /** Data buffer size. */ #define RSHDOWN_DATA_BUFFER_SIZE 2048 /** Calculate size of a variable. */ #define SIZEOF(v,t) (sizeof(v)/sizeof(t)) #endif /* vim: set ai sw=4 ts=4 : */ #endif