pacmd: Add unloading modules by name.

pacmd should allow unloading modules by name.
The command_unload() function was expanded to handle names while
unloading modules.

If there are multiple modules with the same name all
of them will be unloaded.

BugLink: https://bugs.freedesktop.org/show_bug.cgi?id=48289
This commit is contained in:
poljar 2012-05-30 14:27:26 +02:00 committed by Tanu Kaskinen
parent 48f4c8ab8f
commit 23432d39ee
2 changed files with 24 additions and 9 deletions

View file

@ -51,7 +51,7 @@ static void help(const char *argv0) {
printf("%s %s\n", argv0, "stat");
printf("%s %s\n", argv0, "info");
printf("%s %s %s\n", argv0, "load-module", _("NAME [ARGS ...]"));
printf("%s %s %s\n", argv0, "unload-module", _("#N"));
printf("%s %s %s\n", argv0, "unload-module", _("NAME|#N"));
printf("%s %s %s\n", argv0, "describe-module", _("NAME"));
printf("%s %s %s\n", argv0, "set-(sink|source)-volume", _("NAME|#N VOLUME"));
printf("%s %s %s\n", argv0, "set-(sink-input|source-output)-volume", _("#N VOLUME"));