aboutsummaryrefslogtreecommitdiff
path: root/src/zmq/zmqutil.h
diff options
context:
space:
mode:
authorDaniel Kraft <d@domob.eu>2018-07-17 12:51:23 +0200
committerDaniel Kraft <d@domob.eu>2020-09-07 10:56:22 +0200
commita3ffb6ebebd753cec294c91cef7c603a30cf217e (patch)
tree2c9924ca5ac65d2c742227eea19163dc4d73b6a7 /src/zmq/zmqutil.h
parent7f2ad1b9acef4ccc1b3e1a9f551416235d95cbfd (diff)
Replace zmqconfig.h by a simple zmqutil.
zmqconfig.h is currently not really needed anywhere, except that it declares zmqError (which is then defined in zmqnotificationinterface.cpp). Note in particular that there is no need to conditionally include zmq.h only if ZMQ is enabled, because the place in the core code where the ZMQ library itself is included (init.cpp) is conditional already on that. This commit removes zmqconfig.h and replaces it by a much simpler zmqutil.h library for zmqError. The definition of the function is moved to the matching (newly created) zmqutil.cpp.
Diffstat (limited to 'src/zmq/zmqutil.h')
-rw-r--r--src/zmq/zmqutil.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/zmq/zmqutil.h b/src/zmq/zmqutil.h
new file mode 100644
index 0000000000..4c1df5d6db
--- /dev/null
+++ b/src/zmq/zmqutil.h
@@ -0,0 +1,10 @@
+// Copyright (c) 2014-2018 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_ZMQ_ZMQUTIL_H
+#define BITCOIN_ZMQ_ZMQUTIL_H
+
+void zmqError(const char* str);
+
+#endif // BITCOIN_ZMQ_ZMQUTIL_H