mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-16 13:40:05 +02:00
Add a function for URL encoding file paths
This commit is contained in:
@@ -133,6 +133,12 @@ bool is_watchdog_timer_disabled();
|
||||
*/
|
||||
bool pid_running(pid_t pid);
|
||||
|
||||
/**
|
||||
* URL encode a file path. We won't escape forward slashes, and `path` should
|
||||
* not yet include the `file://` prefix.
|
||||
*/
|
||||
std::string url_encode_path(std::string path);
|
||||
|
||||
/**
|
||||
* Escape XML entities within a string. Used inside of desktop notifications.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user