diff options
author | Lennart Poettering <lennart@poettering.net> | 2004-09-16 22:57:01 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2004-09-16 22:57:01 +0000 |
commit | 9481de22354d1f07212c39a9ed67134930bfe2a5 (patch) | |
tree | 95e597c6e4a3e0b4fd472e17949c1da39de0298c /src/ServerInfoManager.cc | |
parent | 0a84f669d3d4c72c498b01b999dd89af7f917480 (diff) |
implement client/source-output/sink-input killing
git-svn-id: file:///home/lennart/svn/public/paman/trunk@34 cdefa82f-4ce1-0310-97f5-ab6066f37c3c
Diffstat (limited to 'src/ServerInfoManager.cc')
-rw-r--r-- | src/ServerInfoManager.cc | 12 |
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)); +} |