From cfb895438a740132d4b67f155719c7a0f3da8aaa Mon Sep 17 00:00:00 2001 From: Tanu Kaskinen Date: Tue, 12 Feb 2013 21:36:51 +0200 Subject: [PATCH] gconf: Add userdata pointer to struct module_info This will be useful in simplifying function argument lists. --- src/modules/gconf/module-gconf.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/modules/gconf/module-gconf.c b/src/modules/gconf/module-gconf.c index c951d9035..e517d5284 100644 --- a/src/modules/gconf/module-gconf.c +++ b/src/modules/gconf/module-gconf.c @@ -50,6 +50,8 @@ PA_MODULE_LOAD_ONCE(TRUE); #define MAX_MODULES 10 #define BUF_MAX 2048 +struct userdata; + struct module_item { char *name; char *args; @@ -57,6 +59,7 @@ struct module_item { }; struct module_info { + struct userdata *userdata; char *name; struct module_item items[MAX_MODULES]; @@ -233,6 +236,7 @@ static int handle_event(struct userdata *u) { if (!(m = pa_hashmap_get(u->module_infos, name))) { m = pa_xnew(struct module_info, 1); + m->userdata = u; m->name = name; m->n_items = 0; pa_hashmap_put(u->module_infos, m->name, m); -- 2.34.1