Append a link to the plugin to the notifications

This commit is contained in:
Robbert van der Helm
2021-06-28 13:05:32 +02:00
parent 388d9739a9
commit c5afb7f215
5 changed files with 32 additions and 5 deletions
+5 -1
View File
@@ -274,11 +274,15 @@ Configuration load_config_for(const boost::filesystem::path& yabridge_path);
* @param body The message to display. This can contain line feeds, and it any
* HTML tags and XML escape sequences will be automatically escaped. The
* message can also be empty.
* @param Whether to append 'Source: <XXX.so>' to the body, where `<XXX.so>` is
* a hyperlink to the directory this library is placed in.
*
* @return Whether the notification was sent. This will be false if
* `notify-send` is not available.
*/
bool send_notification(const std::string& title, const std::string body);
bool send_notification(const std::string& title,
const std::string body,
bool append_origin);
/**
* Starting from the starting file or directory, go up in the directory