Bitcoin Core 31.99.0
P2P Digital Currency
args.h
Go to the documentation of this file.
1// Copyright (c) 2023-present The Bitcoin Core developers
2// Distributed under the MIT software license, see the accompanying
3// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
5#ifndef BITCOIN_COMMON_ARGS_H
6#define BITCOIN_COMMON_ARGS_H
7
8#include <common/settings.h>
9#include <compat/compat.h>
10#include <sync.h>
11#include <util/chaintype.h>
12#include <util/fs.h>
13
14#include <concepts>
15#include <cstdint>
16#include <iosfwd>
17#include <list>
18#include <map>
19#include <optional>
20#include <set>
21#include <string>
22#include <variant>
23#include <vector>
24
25class ArgsManager;
26
27extern const char * const BITCOIN_CONF_FILENAME;
28extern const char * const BITCOIN_SETTINGS_FILENAME;
29
30// Return true if -datadir option points to a valid directory or is not specified.
32
42fs::path AbsPathForConfigVal(const ArgsManager& args, const fs::path& path, bool net_specific = true);
43
44inline bool IsSwitchChar(char c)
45{
46#ifdef WIN32
47 return c == '-' || c == '/';
48#else
49 return c == '-';
50#endif
51}
52
53enum class OptionsCategory {
54 OPTIONS,
56 WALLET,
58 ZMQ,
63 RPC,
64 GUI,
68 IPC,
69
70 HIDDEN // Always the last option to avoid printing these in the help
71};
72
73struct KeyInfo {
74 std::string name;
75 std::string section;
76 bool negated{false};
77};
78
79KeyInfo InterpretKey(std::string key);
80
81std::optional<common::SettingsValue> InterpretValue(const KeyInfo& key, const std::string* value,
82 unsigned int flags, std::string& error);
83
85 std::string m_name;
86 std::string m_file;
87 int m_line;
88};
89
90std::string SettingToString(const common::SettingsValue&, const std::string&);
91std::optional<std::string> SettingToString(const common::SettingsValue&);
92
93template <std::integral Int>
94Int SettingTo(const common::SettingsValue&, Int);
95
96template <std::integral Int>
97std::optional<Int> SettingTo(const common::SettingsValue&);
98
99bool SettingToBool(const common::SettingsValue&, bool);
100std::optional<bool> SettingToBool(const common::SettingsValue&);
101
103{
104public:
109 enum Flags : uint32_t {
110 ALLOW_ANY = 0x01,
111 // ALLOW_BOOL = 0x02, //!< unimplemented, draft implementation in #16545
112 // ALLOW_INT = 0x04, //!< unimplemented, draft implementation in #16545
113 // ALLOW_STRING = 0x08, //!< unimplemented, draft implementation in #16545
114 // ALLOW_LIST = 0x10, //!< unimplemented, draft implementation in #16545
117
118 DEBUG_ONLY = 0x100,
119 /* Some options would cause cross-contamination if values for
120 * mainnet were used while running on regtest/testnet (or vice-versa).
121 * Setting them as NETWORK_ONLY ensures that sharing a config file
122 * between mainnet and regtest/testnet won't cause problems due to these
123 * parameters by accident. */
125 // This argument's value is sensitive (such as a password).
126 SENSITIVE = 0x400,
127 COMMAND = 0x800,
128 };
129
130private:
131 struct Arg
132 {
133 std::string m_help_param;
134 std::string m_help_text;
135 unsigned int m_flags;
136 };
137
138 mutable Mutex cs_args;
140 std::vector<std::string> m_command GUARDED_BY(cs_args);
141 std::string m_network GUARDED_BY(cs_args);
142 std::set<std::string> m_network_only_args GUARDED_BY(cs_args);
143 std::map<OptionsCategory, std::map<std::string, Arg>> m_available_args GUARDED_BY(cs_args);
144 std::optional<unsigned int> m_default_flags GUARDED_BY(cs_args){};
145 bool m_accept_any_command GUARDED_BY(cs_args){true};
146 std::list<SectionInfo> m_config_sections GUARDED_BY(cs_args);
147 std::optional<fs::path> m_config_path GUARDED_BY(cs_args);
148 mutable fs::path m_cached_blocks_path GUARDED_BY(cs_args);
149 mutable fs::path m_cached_datadir_path GUARDED_BY(cs_args);
150 mutable fs::path m_cached_network_datadir_path GUARDED_BY(cs_args);
151
157 bool UseDefaultSection(const std::string& arg) const EXCLUSIVE_LOCKS_REQUIRED(cs_args);
158
159protected:
160 [[nodiscard]] bool ReadConfigStream(std::istream& stream, const std::string& filepath, std::string& error, bool ignore_invalid_keys = false) EXCLUSIVE_LOCKS_REQUIRED(!cs_args);
161 [[nodiscard]] bool ReadConfigString(const std::string& str_config) EXCLUSIVE_LOCKS_REQUIRED(!cs_args);
162
163public:
172
176 std::vector<common::SettingsValue> GetSettingsList(const std::string& arg) const EXCLUSIVE_LOCKS_REQUIRED(!cs_args);
177
180
184 void SelectConfigNetwork(const std::string& network) EXCLUSIVE_LOCKS_REQUIRED(!cs_args);
185
186 [[nodiscard]] bool ParseParameters(int argc, const char* const argv[], std::string& error) EXCLUSIVE_LOCKS_REQUIRED(!cs_args);
187
193 [[nodiscard]] bool ReadConfigFiles(std::string& error, bool ignore_invalid_keys = false) EXCLUSIVE_LOCKS_REQUIRED(!cs_args);
194
202
207
208 struct Command {
210 std::string command;
215 std::vector<std::string> args;
216 };
220 std::optional<const Command> GetCommand() const EXCLUSIVE_LOCKS_REQUIRED(!cs_args);
221
228
235
242
247
254 std::vector<std::string> GetArgs(const std::string& strArg) const EXCLUSIVE_LOCKS_REQUIRED(!cs_args);
255
262 bool IsArgSet(const std::string& strArg) const EXCLUSIVE_LOCKS_REQUIRED(!cs_args);
263
271 bool IsArgNegated(const std::string& strArg) const EXCLUSIVE_LOCKS_REQUIRED(!cs_args);
272
280 std::string GetArg(const std::string& strArg, const std::string& strDefault) const EXCLUSIVE_LOCKS_REQUIRED(!cs_args);
281 std::optional<std::string> GetArg(const std::string& strArg) const EXCLUSIVE_LOCKS_REQUIRED(!cs_args);
282
293 fs::path GetPathArg(std::string arg, const fs::path& default_value = {}) const EXCLUSIVE_LOCKS_REQUIRED(!cs_args);
294
302 template <std::integral Int>
303 Int GetArg(const std::string& strArg, Int nDefault) const EXCLUSIVE_LOCKS_REQUIRED(!cs_args);
304
305 template <std::integral Int>
306 std::optional<Int> GetArg(const std::string& strArg) const EXCLUSIVE_LOCKS_REQUIRED(!cs_args);
307
308 int64_t GetIntArg(const std::string& strArg, int64_t nDefault) const EXCLUSIVE_LOCKS_REQUIRED(!cs_args) { return GetArg<int64_t>(strArg, nDefault); }
309 std::optional<int64_t> GetIntArg(const std::string& strArg) const EXCLUSIVE_LOCKS_REQUIRED(!cs_args) { return GetArg<int64_t>(strArg); }
310
318 bool GetBoolArg(const std::string& strArg, bool fDefault) const EXCLUSIVE_LOCKS_REQUIRED(!cs_args);
319 std::optional<bool> GetBoolArg(const std::string& strArg) const EXCLUSIVE_LOCKS_REQUIRED(!cs_args);
320
328 bool SoftSetArg(const std::string& strArg, const std::string& strValue) EXCLUSIVE_LOCKS_REQUIRED(!cs_args);
329
337 bool SoftSetBoolArg(const std::string& strArg, bool fValue) EXCLUSIVE_LOCKS_REQUIRED(!cs_args);
338
339 // Forces an arg setting. Called by SoftSetArg() if the arg hasn't already
340 // been set. Also called directly in testing.
341 void ForceSetArg(const std::string& strArg, const std::string& strValue) EXCLUSIVE_LOCKS_REQUIRED(!cs_args);
342
349
356
360 void AddArg(const std::string& name, const std::string& help, unsigned int flags, const OptionsCategory& cat) EXCLUSIVE_LOCKS_REQUIRED(!cs_args);
361
365 void AddCommand(const std::string& cmd, const std::string& help) EXCLUSIVE_LOCKS_REQUIRED(!cs_args);
366
370 void AddHiddenArgs(const std::vector<std::string>& args) EXCLUSIVE_LOCKS_REQUIRED(!cs_args);
371
376
383
388
393 std::optional<unsigned int> GetArgFlags(const std::string& name) const EXCLUSIVE_LOCKS_REQUIRED(!cs_args);
394
398 void SetDefaultFlags(std::optional<unsigned int>) EXCLUSIVE_LOCKS_REQUIRED(!cs_args);
399
404 bool GetSettingsPath(fs::path* filepath = nullptr, bool temp = false, bool backup = false) const EXCLUSIVE_LOCKS_REQUIRED(!cs_args);
405
409 bool ReadSettingsFile(std::vector<std::string>* errors = nullptr) EXCLUSIVE_LOCKS_REQUIRED(!cs_args);
410
415 bool WriteSettingsFile(std::vector<std::string>* errors = nullptr, bool backup = false) const EXCLUSIVE_LOCKS_REQUIRED(!cs_args);
416
422
426 template <typename Fn>
428 {
429 LOCK(cs_args);
430 fn(m_settings);
431 }
432
438
439private:
440 // Internal helpers, for use by callers that already hold `cs_args`.
442 std::optional<unsigned int> GetArgFlags_(const std::string& name) const EXCLUSIVE_LOCKS_REQUIRED(cs_args);
443 fs::path GetPathArg_(std::string arg, const fs::path& default_value = {}) const EXCLUSIVE_LOCKS_REQUIRED(cs_args);
444
451 fs::path GetDataDir(bool net_specific) const EXCLUSIVE_LOCKS_REQUIRED(cs_args);
452
459 std::variant<ChainType, std::string> GetChainArg() const EXCLUSIVE_LOCKS_REQUIRED(!cs_args);
460
461 // Helper function for LogArgs().
462 void logArgsPrefix(
463 const std::string& prefix,
464 const std::string& section,
465 const std::map<std::string, std::vector<common::SettingsValue>>& args) const EXCLUSIVE_LOCKS_REQUIRED(cs_args);
466};
467
468extern ArgsManager gArgs;
469
473bool HelpRequested(const ArgsManager& args);
474
477
478extern const std::vector<std::string> TEST_OPTIONS_DOC;
479
481bool HasTestOption(const ArgsManager& args, const std::string& test_option);
482
489std::string HelpMessageGroup(const std::string& message);
490
498std::string HelpMessageOpt(const std::string& option, const std::string& message);
499
500#endif // BITCOIN_COMMON_ARGS_H
const std::vector< std::string > TEST_OPTIONS_DOC
Definition: args.cpp:768
bool HelpRequested(const ArgsManager &args)
Definition: args.cpp:742
void SetupHelpOptions(ArgsManager &args)
Add help options to the args manager.
Definition: args.cpp:747
std::string SettingToString(const common::SettingsValue &, const std::string &)
Definition: args.cpp:505
bool SettingToBool(const common::SettingsValue &, bool)
Definition: args.cpp:557
std::optional< common::SettingsValue > InterpretValue(const KeyInfo &key, const std::string *value, unsigned int flags, std::string &error)
Interpret settings value based on registered flags.
Definition: args.cpp:105
OptionsCategory
Definition: args.h:53
const char *const BITCOIN_SETTINGS_FILENAME
Definition: args.cpp:38
bool CheckDataDirOption(const ArgsManager &args)
Definition: args.cpp:814
fs::path AbsPathForConfigVal(const ArgsManager &args, const fs::path &path, bool net_specific=true)
Most paths passed as configuration arguments are treated as relative to the datadir if they are not a...
Definition: config.cpp:240
Int SettingTo(const common::SettingsValue &, Int)
Definition: args.cpp:534
ArgsManager gArgs
Definition: args.cpp:40
bool HasTestOption(const ArgsManager &args, const std::string &test_option)
Checks if a particular test option is present in -test command-line arg options.
Definition: args.cpp:774
std::string HelpMessageGroup(const std::string &message)
Format a string to be used as group of options in help messages.
Definition: args.cpp:757
KeyInfo InterpretKey(std::string key)
Parse "name", "section.name", "noname", "section.noname" settings keys.
Definition: args.cpp:77
const char *const BITCOIN_CONF_FILENAME
Definition: args.cpp:37
bool IsSwitchChar(char c)
Definition: args.h:44
std::string HelpMessageOpt(const std::string &option, const std::string &message)
Format a string to be used as option description in help messages.
Definition: args.cpp:761
int flags
Definition: bitcoin-tx.cpp:529
const auto cmd
ArgsManager & args
Definition: bitcoind.cpp:277
ChainType
Definition: chaintype.h:11
bool ParseParameters(int argc, const char *const argv[], std::string &error) EXCLUSIVE_LOCKS_REQUIRED(!cs_args)
Definition: args.cpp:177
std::vector< common::SettingsValue > GetSettingsList(const std::string &arg) const EXCLUSIVE_LOCKS_REQUIRED(!cs_args)
Get list of setting values.
Definition: args.cpp:899
std::vector< std::string > GetArgs(const std::string &strArg) const EXCLUSIVE_LOCKS_REQUIRED(!cs_args)
Return a vector of strings of the given argument.
Definition: args.cpp:390
std::optional< unsigned int > m_default_flags GUARDED_BY(cs_args)
Definition: args.h:144
ChainType GetChainType() const EXCLUSIVE_LOCKS_REQUIRED(!cs_args)
Returns the appropriate chain type from the program arguments.
Definition: args.cpp:833
std::map< OptionsCategory, std::map< std::string, Arg > > m_available_args GUARDED_BY(cs_args)
void CheckMultipleCLIArgs() const EXCLUSIVE_LOCKS_REQUIRED(!cs_args)
Check CLI command args.
Definition: args.cpp:650
Flags
Flags controlling how config and command line arguments are validated and interpreted.
Definition: args.h:109
@ NETWORK_ONLY
Definition: args.h:124
@ ALLOW_ANY
disable validation
Definition: args.h:110
@ DISALLOW_NEGATION
disallow -nofoo syntax
Definition: args.h:115
@ DISALLOW_ELISION
disallow -foo syntax that doesn't assign any value
Definition: args.h:116
@ DEBUG_ONLY
Definition: args.h:118
@ COMMAND
Definition: args.h:127
@ SENSITIVE
Definition: args.h:126
std::list< SectionInfo > GetUnrecognizedSections() const EXCLUSIVE_LOCKS_REQUIRED(!cs_args)
Log warnings for unrecognized section names in the config file.
Definition: args.cpp:154
common::SettingsValue GetSetting(const std::string &arg) const EXCLUSIVE_LOCKS_REQUIRED(!cs_args)
Get setting value.
Definition: args.cpp:893
bool GetSettingsPath(fs::path *filepath=nullptr, bool temp=false, bool backup=false) const EXCLUSIVE_LOCKS_REQUIRED(!cs_args)
Get settings file path, or return false if read-write settings were disabled with -nosettings.
Definition: args.cpp:404
bool ReadConfigString(const std::string &str_config) EXCLUSIVE_LOCKS_REQUIRED(!cs_args)
Definition: config.cpp:123
fs::path GetBlocksDirPath() const EXCLUSIVE_LOCKS_REQUIRED(!cs_args)
Get blocks directory path.
Definition: args.cpp:300
fs::path m_cached_datadir_path GUARDED_BY(cs_args)
fs::path GetDataDirBase() const EXCLUSIVE_LOCKS_REQUIRED(!cs_args)
Get data directory path.
Definition: args.cpp:325
fs::path GetConfigFilePath() const EXCLUSIVE_LOCKS_REQUIRED(!cs_args)
Return config file path (read-only)
Definition: args.cpp:820
void SetDefaultFlags(std::optional< unsigned int >) EXCLUSIVE_LOCKS_REQUIRED(!cs_args)
Set default flags to return for an unknown arg.
Definition: args.cpp:276
bool SoftSetArg(const std::string &strArg, const std::string &strValue) EXCLUSIVE_LOCKS_REQUIRED(!cs_args)
Set an argument if it doesn't already have a value.
Definition: args.cpp:579
std::set< std::string > GetUnsuitableSectionOnlyArgs() const EXCLUSIVE_LOCKS_REQUIRED(!cs_args)
Log warnings for options in m_section_only_args when they are specified in the default section but no...
Definition: args.cpp:134
std::optional< fs::path > m_config_path GUARDED_BY(cs_args)
void AddArg(const std::string &name, const std::string &help, unsigned int flags, const OptionsCategory &cat) EXCLUSIVE_LOCKS_REQUIRED(!cs_args)
Add argument.
Definition: args.cpp:613
bool WriteSettingsFile(std::vector< std::string > *errors=nullptr, bool backup=false) const EXCLUSIVE_LOCKS_REQUIRED(!cs_args)
Write settings file or backup settings file.
Definition: args.cpp:453
fs::path GetPathArg_(std::string arg, const fs::path &default_value={}) const EXCLUSIVE_LOCKS_REQUIRED(cs_args)
Definition: args.cpp:282
std::optional< int64_t > GetIntArg(const std::string &strArg) const EXCLUSIVE_LOCKS_REQUIRED(!cs_args)
Definition: args.h:309
void LockSettings(Fn &&fn) EXCLUSIVE_LOCKS_REQUIRED(!cs_args)
Access settings with lock held.
Definition: args.h:427
bool ReadConfigFiles(std::string &error, bool ignore_invalid_keys=false) EXCLUSIVE_LOCKS_REQUIRED(!cs_args)
Definition: config.cpp:135
std::list< SectionInfo > m_config_sections GUARDED_BY(cs_args)
std::string m_network GUARDED_BY(cs_args)
void ClearPathCache() EXCLUSIVE_LOCKS_REQUIRED(!cs_args)
Clear cached directory paths.
Definition: args.cpp:361
void AddCommand(const std::string &cmd, const std::string &help) EXCLUSIVE_LOCKS_REQUIRED(!cs_args)
Add subcommand.
Definition: args.cpp:601
fs::path GetDataDir(bool net_specific) const EXCLUSIVE_LOCKS_REQUIRED(cs_args)
Get data directory path.
Definition: args.cpp:335
fs::path m_cached_blocks_path GUARDED_BY(cs_args)
void SetConfigFilePath(fs::path) EXCLUSIVE_LOCKS_REQUIRED(!cs_args)
Definition: args.cpp:826
std::set< std::string > m_network_only_args GUARDED_BY(cs_args)
common::SettingsValue GetPersistentSetting(const std::string &name) const EXCLUSIVE_LOCKS_REQUIRED(!cs_args)
Get current setting from config file or read/write settings file, ignoring nonpersistent command line...
Definition: args.cpp:473
void ForceSetArg(const std::string &strArg, const std::string &strValue) EXCLUSIVE_LOCKS_REQUIRED(!cs_args)
Definition: args.cpp:595
fs::path GetPathArg(std::string arg, const fs::path &default_value={}) const EXCLUSIVE_LOCKS_REQUIRED(!cs_args)
Return path argument or default value.
Definition: args.cpp:294
std::vector< std::string > m_command GUARDED_BY(cs_args)
void LogArgs() const EXCLUSIVE_LOCKS_REQUIRED(!cs_args)
Log the config file options and the command line arguments, useful for troubleshooting.
Definition: args.cpp:923
std::string GetArg(const std::string &strArg, const std::string &strDefault) const EXCLUSIVE_LOCKS_REQUIRED(!cs_args)
Return string argument or default value.
Definition: args.cpp:485
void AddHiddenArgs(const std::vector< std::string > &args) EXCLUSIVE_LOCKS_REQUIRED(!cs_args)
Add many hidden arguments.
Definition: args.cpp:634
std::variant< ChainType, std::string > GetChainArg() const EXCLUSIVE_LOCKS_REQUIRED(!cs_args)
Return -regtest/-signet/-testnet/-testnet4/-chain= setting as a ChainType enum if a recognized chain ...
Definition: args.cpp:847
common::Settings m_settings GUARDED_BY(cs_args)
void logArgsPrefix(const std::string &prefix, const std::string &section, const std::map< std::string, std::vector< common::SettingsValue > > &args) const EXCLUSIVE_LOCKS_REQUIRED(cs_args)
Definition: args.cpp:905
std::string GetChainTypeString() const EXCLUSIVE_LOCKS_REQUIRED(!cs_args)
Returns the appropriate chain type string from the program arguments.
Definition: args.cpp:840
bool ReadSettingsFile(std::vector< std::string > *errors=nullptr) EXCLUSIVE_LOCKS_REQUIRED(!cs_args)
Read settings file.
Definition: args.cpp:430
void ClearArgs() EXCLUSIVE_LOCKS_REQUIRED(!cs_args)
Clear available arguments.
Definition: args.cpp:641
bool IsArgSet(const std::string &strArg) const EXCLUSIVE_LOCKS_REQUIRED(!cs_args)
Return true if the given argument has been manually set.
Definition: args.cpp:399
Mutex cs_args
Definition: args.h:138
std::optional< const Command > GetCommand() const EXCLUSIVE_LOCKS_REQUIRED(!cs_args)
Get the command and command args (returns std::nullopt if no command provided)
Definition: args.cpp:370
bool SoftSetBoolArg(const std::string &strArg, bool fValue) EXCLUSIVE_LOCKS_REQUIRED(!cs_args)
Set a boolean argument if it doesn't already have a value.
Definition: args.cpp:587
fs::path GetDataDirNet() const EXCLUSIVE_LOCKS_REQUIRED(!cs_args)
Get data directory path with appended network identifier.
Definition: args.cpp:330
bool IsArgNegated(const std::string &strArg) const EXCLUSIVE_LOCKS_REQUIRED(!cs_args)
Return true if the argument was originally passed as a negated option, i.e.
Definition: args.cpp:480
common::SettingsValue GetSetting_(const std::string &arg) const EXCLUSIVE_LOCKS_REQUIRED(cs_args)
Definition: args.cpp:885
bool ReadConfigStream(std::istream &stream, const std::string &filepath, std::string &error, bool ignore_invalid_keys=false) EXCLUSIVE_LOCKS_REQUIRED(!cs_args)
Definition: config.cpp:94
std::optional< unsigned int > GetArgFlags(const std::string &name) const EXCLUSIVE_LOCKS_REQUIRED(!cs_args)
Return Flags for known arg.
Definition: args.cpp:270
std::optional< unsigned int > GetArgFlags_(const std::string &name) const EXCLUSIVE_LOCKS_REQUIRED(cs_args)
Definition: args.cpp:258
int64_t GetIntArg(const std::string &strArg, int64_t nDefault) const EXCLUSIVE_LOCKS_REQUIRED(!cs_args)
Definition: args.h:308
bool m_accept_any_command GUARDED_BY(cs_args)
Definition: args.h:145
fs::path m_cached_network_datadir_path GUARDED_BY(cs_args)
bool UseDefaultSection(const std::string &arg) const EXCLUSIVE_LOCKS_REQUIRED(cs_args)
Returns true if settings values from the default section should be used, depending on the current net...
Definition: args.cpp:879
bool GetBoolArg(const std::string &strArg, bool fDefault) const EXCLUSIVE_LOCKS_REQUIRED(!cs_args)
Return boolean argument or default value.
Definition: args.cpp:539
void SelectConfigNetwork(const std::string &network) EXCLUSIVE_LOCKS_REQUIRED(!cs_args)
Select the network in use.
Definition: args.cpp:171
std::string GetHelpMessage() const EXCLUSIVE_LOCKS_REQUIRED(!cs_args)
Get the help string.
Definition: args.cpp:667
Definition: init.cpp:17
UniValue SettingsValue
Settings value type (string/integer/boolean/null variant).
Definition: settings.h:28
Definition: common.h:29
CRPCCommand m_command
Definition: interfaces.cpp:544
const char * prefix
Definition: rest.cpp:1142
const char * name
Definition: rest.cpp:49
static RPCMethod help()
Definition: server.cpp:119
std::string m_help_param
Definition: args.h:133
unsigned int m_flags
Definition: args.h:135
std::string m_help_text
Definition: args.h:134
std::vector< std::string > args
If command is non-empty: Any args that followed it If command is empty: The unregistered command and ...
Definition: args.h:215
std::string command
The command (if one has been registered with AddCommand), or empty.
Definition: args.h:210
Definition: args.h:73
std::string name
Definition: args.h:74
bool negated
Definition: args.h:76
std::string section
Definition: args.h:75
int m_line
Definition: args.h:87
std::string m_file
Definition: args.h:86
std::string m_name
Definition: args.h:85
Stored settings.
Definition: settings.h:32
#define LOCK(cs)
Definition: sync.h:268
#define EXCLUSIVE_LOCKS_REQUIRED(...)
Definition: threadsafety.h:49