summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2005-01-08 21:40:25 +0000
committerLennart Poettering <lennart@poettering.net>2005-01-08 21:40:25 +0000
commitc29c95d0aac40c6720fb27d77c60051e420a9d87 (patch)
tree90fe01cf678a06c30b524b8ada0b032f45952dd7
parentfb4cba436c691ebadb24068977643674fb8c143e (diff)
* make lirc program name configurable
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@334 fefdeb5f-60dc-0310-8127-8f9354f1896f
-rw-r--r--polyp/module-lirc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/polyp/module-lirc.c b/polyp/module-lirc.c
index a68b5b99..485f570c 100644
--- a/polyp/module-lirc.c
+++ b/polyp/module-lirc.c
@@ -42,11 +42,12 @@
PA_MODULE_AUTHOR("Lennart Poettering")
PA_MODULE_DESCRIPTION("LIRC volume control")
PA_MODULE_VERSION(PACKAGE_VERSION)
-PA_MODULE_USAGE("config=<config file> sink=<sink name>")
+PA_MODULE_USAGE("config=<config file> sink=<sink name> appname=<lirc application name>")
static const char* const valid_modargs[] = {
"config",
"sink",
+ "appname",
NULL,
};
@@ -170,7 +171,7 @@ int pa__init(struct pa_core *c, struct pa_module*m) {
u->lirc_fd = -1;
u->mute_toggle_save = 0;
- if ((u->lirc_fd = lirc_init("polypaudio", 1)) < 0) {
+ if ((u->lirc_fd = lirc_init(pa_modargs_get_value(ma, "appname", "polypaudio"), 1)) < 0) {
pa_log(__FILE__": lirc_init() failed.\n");
goto fail;
}