aboutsummaryrefslogtreecommitdiff
path: root/plugins/utils
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2022-12-10 19:39:08 +0100
committerdec05eba <dec05eba@protonmail.com>2022-12-10 19:39:08 +0100
commitc16bb75c8890bbeb7d375beb110224ec0f14b115 (patch)
tree6d10897048c83758baeb524a5b7ca9169f894900 /plugins/utils
parent2f8e3dedd4c33e5759adea186c1f1bb77c242069 (diff)
Matrix: re-add sync from latest cache
Diffstat (limited to 'plugins/utils')
-rw-r--r--plugins/utils/UniqueProcess.hpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/plugins/utils/UniqueProcess.hpp b/plugins/utils/UniqueProcess.hpp
new file mode 100644
index 0000000..f85704f
--- /dev/null
+++ b/plugins/utils/UniqueProcess.hpp
@@ -0,0 +1,7 @@
+#pragma once
+
+namespace QuickMedia {
+ bool is_quickmedia_instance_already_running(const char *sock_file_dir, const char *plugin_name);
+ bool set_quickmedia_instance_unique(const char *sock_file_dir, const char *plugin_name);
+ void remove_quickmedia_instance_lock(const char *sock_file_dir, const char *plugin_name);
+} \ No newline at end of file