int ret = -E_AUDIOC_SYNTAX, fd;
char *cf, *socket_name, *randname = para_tmpname(), *tmpsocket_name = NULL,
*buf = NULL, *hn = para_hostname(), *args, *home = para_homedir();
- size_t bufsize = conf.bufsize_arg, loaded = 0;
+ size_t bufsize, loaded = 0;
if (audioc_cmdline_parser(argc, argv, &conf))
goto out;
HANDLE_VERSION_FLAG("audioc", conf);
cf = configfile_exists();
if (cf) {
- if (audioc_cmdline_parser_configfile(cf, &conf, 0, 0, 0)) {
+ struct audioc_cmdline_parser_params params = {
+ .override = 0,
+ .initialize = 0,
+ .check_required = 0,
+ .check_ambiguity = 0
+ };
+ if (audioc_cmdline_parser_config_file(cf, &conf, ¶ms)) {
fprintf(stderr, "parse error in config file\n");
exit(EXIT_FAILURE);
}
args = conf.inputs_num?
concat_args(conf.inputs_num, conf.inputs) :
para_strdup("stat");
+ bufsize = conf.bufsize_arg;
buf = para_malloc(bufsize);
if (conf.socket_given)
socket_name = para_strdup(conf.socket_arg);
tmpsocket_name = make_message("%s/.paraslash/audioc_sock.%s.%s",
home, hn, randname);
- ret = create_pf_socket(tmpsocket_name, &unix_addr, S_IRUSR | S_IWUSR);
+ ret = create_local_socket(tmpsocket_name, &unix_addr, S_IRUSR | S_IWUSR);
unlink(tmpsocket_name);
if (ret < 0)
goto out;