summaryrefslogtreecommitdiffstats
path: root/src/modules/dbus/iface-module.c
diff options
context:
space:
mode:
authorTanu Kaskinen <tanuk@iki.fi>2009-08-09 08:37:33 +0300
committerTanu Kaskinen <tanuk@iki.fi>2009-08-09 08:37:33 +0300
commitfcf68752e687123a171b1144f78f8eba1625a204 (patch)
tree2970a44e556502c107e3c266ff911c4790a26dc0 /src/modules/dbus/iface-module.c
parent1457df40eee692834d1c5faf95ca0057d74f86d1 (diff)
dbus: Three entangled changes:
* Make the dbus object constructors take a pa_dbusiface_core pointer as an argument. Remove the path_prefix argument. * Expose the core object path as a constant in protocol-dbus.h. * Move the core interface name constant from iface-core.h to protocol-dbus.h.
Diffstat (limited to 'src/modules/dbus/iface-module.c')
-rw-r--r--src/modules/dbus/iface-module.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/modules/dbus/iface-module.c b/src/modules/dbus/iface-module.c
index 1c95f9e6..788d104b 100644
--- a/src/modules/dbus/iface-module.c
+++ b/src/modules/dbus/iface-module.c
@@ -24,6 +24,7 @@
#endif
#include <pulsecore/core-util.h>
+#include <pulsecore/protocol-dbus.h>
#include "iface-module.h"
@@ -34,15 +35,15 @@ struct pa_dbusiface_module {
char *path;
};
-pa_dbusiface_module *pa_dbusiface_module_new(pa_module *module, const char *path_prefix) {
+pa_dbusiface_module *pa_dbusiface_module_new(pa_dbusiface_core *core, pa_module *module) {
pa_dbusiface_module *m;
+ pa_assert(core);
pa_assert(module);
- pa_assert(path_prefix);
m = pa_xnew(pa_dbusiface_module, 1);
m->module = module;
- m->path = pa_sprintf_malloc("%s/%s%u", path_prefix, OBJECT_NAME, module->index);
+ m->path = pa_sprintf_malloc("%s/%s%u", PA_DBUS_CORE_OBJECT_PATH, OBJECT_NAME, module->index);
return m;
}