From 9481de22354d1f07212c39a9ed67134930bfe2a5 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 16 Sep 2004 22:57:01 +0000 Subject: implement client/source-output/sink-input killing git-svn-id: file:///home/lennart/svn/public/paman/trunk@34 cdefa82f-4ce1-0310-97f5-ab6066f37c3c --- src/ServerInfoManager.cc | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/ServerInfoManager.cc') 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)); +} -- cgit