mirror of https://github.com/aria2/aria2
clang-format
parent
cf1dd06d03
commit
8fc28a9e43
|
@ -76,15 +76,19 @@ const std::vector<std::string>& allMethodNames() { return rpcMethodNames; }
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
std::vector<std::string> rpcNotificationsNames = {
|
std::vector<std::string> rpcNotificationsNames = {
|
||||||
"aria2.onDownloadStart", "aria2.onDownloadPause", "aria2.onDownloadStop",
|
"aria2.onDownloadStart", "aria2.onDownloadPause",
|
||||||
"aria2.onDownloadComplete", "aria2.onDownloadError",
|
"aria2.onDownloadStop", "aria2.onDownloadComplete",
|
||||||
|
"aria2.onDownloadError",
|
||||||
#ifdef ENABLE_BITTORRENT
|
#ifdef ENABLE_BITTORRENT
|
||||||
"aria2.onBtDownloadComplete",
|
"aria2.onBtDownloadComplete",
|
||||||
#endif // ENABLE_BITTORRENT
|
#endif // ENABLE_BITTORRENT
|
||||||
};
|
};
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|
||||||
const std::vector<std::string>& allNotificationsNames() { return rpcNotificationsNames; }
|
const std::vector<std::string>& allNotificationsNames()
|
||||||
|
{
|
||||||
|
return rpcNotificationsNames;
|
||||||
|
}
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
std::unique_ptr<RpcMethod> createMethod(const std::string& methodName)
|
std::unique_ptr<RpcMethod> createMethod(const std::string& methodName)
|
||||||
|
|
Loading…
Reference in New Issue