From 0a2fced2ee54917819a5cbbfd631419c7540965b Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sun, 3 Aug 2008 16:42:16 +0200 Subject: add new api function pa_cli_get_module() --- src/pulsecore/cli.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/pulsecore/cli.c') diff --git a/src/pulsecore/cli.c b/src/pulsecore/cli.c index 2057b67a..67bf1e73 100644 --- a/src/pulsecore/cli.c +++ b/src/pulsecore/cli.c @@ -151,3 +151,9 @@ void pa_cli_set_eof_callback(pa_cli *c, pa_cli_eof_cb_t cb, void *userdata) { c->eof_callback = cb; c->userdata = userdata; } + +pa_module *pa_cli_get_module(pa_cli *c) { + pa_assert(c); + + return c->client->module; +} -- cgit