UPnPsdk 0.1
Universal Plug and Play +, Software Development Kit
 
Loading...
Searching...
No Matches
global.ipp
Go to the documentation of this file.
1// Copyright (C) 2022+ GPL 3 and higher by Ingo Höft, <Ingo@Hoeft-online.de>
2// Redistribution only with this Copyright remark. Last modified: 2025-05-04
3
4// There is no include guard '#ifndef ...' because this file shouln't be
5// included more than two times as given.
6
12// Due to the global nature of this header file additional #include statements
13// should be taken with great care. They are included in nearly all other
14// compile units.
17
18
19// strndup() is a GNU extension.
20// -----------------------------
21#ifndef HAVE_STRNDUP
22UPnPsdk_API char* strndup(const char* __string, size_t __n);
23#endif
24
25namespace UPnPsdk {
26
27// Global constants
28// ================
29// Default response timeout for UPnP messages as given by The UPnP™ Device
30// Architecture 2.0, Document Revision Date: April 17, 2020.
31inline constexpr int g_response_timeout{30};
32
33// Info message about the library
34// This is not the right place because I need to #include <cmake_vars.hpp>.
35// Needs rework.
36// inline constexpr std::string_view UPnPsdk_version{UPnPsdk_VERSION};
37// inline constexpr std::string_view PUPNP_version{PUPNP_VERSION};
38
39} // namespace UPnPsdk
Reengineered Object Oriented UPnP+ program code.
Macros to support visibility of external symbols.