Changeset View
Changeset View
Standalone View
Standalone View
src/zmq/zmqrpc.cpp
Show First 20 Lines • Show All 45 Lines • ▼ Show 20 Lines | if (g_zmq_notification_interface != nullptr) { | ||||
result.push_back(obj); | result.push_back(obj); | ||||
} | } | ||||
} | } | ||||
return result; | return result; | ||||
} | } | ||||
// clang-format off | // clang-format off | ||||
static const ContextFreeRPCCommand commands[] = { | static const CRPCCommand commands[] = { | ||||
// category name actor (function) argNames | // category name actor (function) argNames | ||||
// ----------------- ------------------------ ----------------------- ---------- | // ----------------- ------------------------ ----------------------- ---------- | ||||
{ "zmq", "getzmqnotifications", getzmqnotifications, {} }, | { "zmq", "getzmqnotifications", getzmqnotifications, {} }, | ||||
}; | }; | ||||
// clang-format on | // clang-format on | ||||
} // anonymous namespace | } // anonymous namespace | ||||
void RegisterZMQRPCCommands(CRPCTable &t) { | void RegisterZMQRPCCommands(CRPCTable &t) { | ||||
for (const auto &c : commands) { | for (const auto &c : commands) { | ||||
t.appendCommand(c.name, &c); | t.appendCommand(c.name, &c); | ||||
} | } | ||||
} | } |