summaryrefslogtreecommitdiffstats
path: root/src/ServerInfoManager.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/ServerInfoManager.cc')
-rw-r--r--src/ServerInfoManager.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/ServerInfoManager.cc b/src/ServerInfoManager.cc
index 13c751a..5d0a6f0 100644
--- a/src/ServerInfoManager.cc
+++ b/src/ServerInfoManager.cc
@@ -710,3 +710,15 @@ void ServerInfoManager::runVolumeMeter(const Glib::ustring &source) {
snprintf(t, sizeof(t), "%s %s", PAVUMETER_PATH, source.c_str());
Glib::spawn_command_line_async(t);
}
+
+void ServerInfoManager::killClient(uint32_t index) {
+ pa_operation_unref(pa_context_kill_client(&context, index, NULL, NULL));
+}
+
+void ServerInfoManager::killSourceOutput(uint32_t index) {
+ pa_operation_unref(pa_context_kill_source_output(&context, index, NULL, NULL));
+}
+
+void ServerInfoManager::killSinkInput(uint32_t index) {
+ pa_operation_unref(pa_context_kill_sink_input(&context, index, NULL, NULL));
+}