Changeset View
Changeset View
Standalone View
Standalone View
src/util.h
// Copyright (c) 2009-2010 Satoshi Nakamoto | // Copyright (c) 2009-2010 Satoshi Nakamoto | ||||
// Copyright (c) 2009-2016 The Bitcoin Core developers | // Copyright (c) 2009-2016 The Bitcoin Core developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
/** | /** | ||||
* Server/client environment: argument handling, config file parsing, | * Server/client environment: argument handling, config file parsing, | ||||
* thread wrappers, startup time | * thread wrappers, startup time | ||||
*/ | */ | ||||
#ifndef BITCOIN_UTIL_H | #ifndef BITCOIN_UTIL_H | ||||
#define BITCOIN_UTIL_H | #define BITCOIN_UTIL_H | ||||
#if defined(HAVE_CONFIG_H) | #if defined(HAVE_CONFIG_H) | ||||
#include "config/bitcoin-config.h" | #include <config/bitcoin-config.h> | ||||
#endif | #endif | ||||
#include "compat.h" | #include <compat.h> | ||||
#include "fs.h" | #include <fs.h> | ||||
#include "logging.h" | #include <logging.h> | ||||
#include "sync.h" | #include <sync.h> | ||||
#include "tinyformat.h" | #include <tinyformat.h> | ||||
#include "utiltime.h" | #include <utiltime.h> | ||||
#include <boost/signals2/signal.hpp> | |||||
#include <boost/thread/condition_variable.hpp> // for boost::thread_interrupted | |||||
#include <atomic> | #include <atomic> | ||||
#include <cstdint> | #include <cstdint> | ||||
#include <exception> | #include <exception> | ||||
#include <map> | #include <map> | ||||
#include <set> | #include <set> | ||||
#include <string> | #include <string> | ||||
#include <unordered_set> | #include <unordered_set> | ||||
#include <vector> | #include <vector> | ||||
#include <boost/signals2/signal.hpp> | |||||
#include <boost/thread/condition_variable.hpp> // for boost::thread_interrupted | |||||
// Application startup time (used for uptime calculation) | // Application startup time (used for uptime calculation) | ||||
int64_t GetStartupTime(); | int64_t GetStartupTime(); | ||||
/** Signals for translation. */ | /** Signals for translation. */ | ||||
class CTranslationInterface { | class CTranslationInterface { | ||||
public: | public: | ||||
/** Translate a message to the native language of the user. */ | /** Translate a message to the native language of the user. */ | ||||
boost::signals2::signal<std::string(const char *psz)> Translate; | boost::signals2::signal<std::string(const char *psz)> Translate; | ||||
▲ Show 20 Lines • Show All 242 Lines • Show Last 20 Lines |