diff options
author | stickies-v <stickies-v@protonmail.com> | 2022-01-27 21:20:05 +0000 |
---|---|---|
committer | stickies-v <stickies-v@protonmail.com> | 2022-03-10 11:24:15 +0100 |
commit | 9f1c54787c81177dd56a31c881a9ad2834a122dc (patch) | |
tree | e176b2645ecceec4774f2c768f3d88d694387b29 /src/rest.h | |
parent | 219d728fcbde8c313940788838afa46c2fb88762 (diff) |
Refactoring: move declarations to rest.h
This facilitates unit testing
Diffstat (limited to 'src/rest.h')
-rw-r--r-- | src/rest.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/rest.h b/src/rest.h new file mode 100644 index 0000000000..70fed99879 --- /dev/null +++ b/src/rest.h @@ -0,0 +1,19 @@ +// Copyright (c) 2015-2022 The Bitcoin Core developers +// Distributed under the MIT software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. + +#ifndef BITCOIN_REST_H +#define BITCOIN_REST_H + +#include <string> + +enum class RetFormat { + UNDEF, + BINARY, + HEX, + JSON, +}; + +RetFormat ParseDataFormat(std::string& param, const std::string& strReq); + +#endif // BITCOIN_REST_H |