#include <pulsecore/modargs.h> /* for "pa_modargs" */
#include "userdata.h" /* for "struct userdata" */
+#include "config.h" /* for "pa_config_...()" */
#include "utils.h" /* for "struct pa_null_sink", "pa_utils_create_null_sink()"... */
#include "loopback.h" /* for "struct pa_loopback/loopnode" */
#include "zone.h" /* for "struct pa_zoneset" */
const char *amsocktype; /* Optional external routing daemon: socket type ("unix"/"tcp") */
const char *amaddr; /* Optional external routing daemon: socket address (path/ip address) */
const char *amport; /* Optional external routing daemon: socket port ("tcp" type only) */
+ const char *cfgpath;
+ char buf[4096];
pa_assert (m);
m->userdata = u;
+ /* apply the config file */
+
+ cfgpath = pa_config_file_get_path (cfgdir, cfgfile, buf, sizeof(buf));
+ pa_config_parse_file (u, cfgpath);
+
/* really initialize the module's core logic */
pa_tracker_synchronize (u);