input/Plugin: add noexcept

This commit is contained in:
Max Kellermann
2020-09-21 11:42:07 +02:00
parent 2c05752071
commit 07e524509f
6 changed files with 12 additions and 8 deletions

View File

@@ -56,7 +56,7 @@ struct InputPlugin {
* Global deinitialization. Called once before MPD shuts
* down (only if init() has returned true).
*/
void (*finish)();
void (*finish)() noexcept;
/**
* Attempt to open the given URI. Returns nullptr if the
@@ -69,7 +69,7 @@ struct InputPlugin {
/**
* return a set of supported protocols
*/
std::set<std::string> (*protocols)();
std::set<std::string> (*protocols)() noexcept;
/**
* Prepare a #RemoteTagScanner. The operation must be started
@@ -103,7 +103,8 @@ struct InputPlugin {
}
};
gcc_pure
bool
protocol_is_whitelisted(const char *proto);
protocol_is_whitelisted(const char *proto) noexcept;
#endif