Lines Matching refs:source_file
86 static int load(const char *source_file, void **dst, size_t *dst_size)
93 if (strcmp(source_file, "-") == 0) {
96 fd = open(source_file, O_RDONLY);
99 source_file, strerror(errno));
219 static int dump(const char *source_file, const char *output_file, int cflags, int sflags)
226 err = load(source_file, (void **)&config, &size);
259 const char *source_file, const char *output_file,
267 err = load(source_file, (void **)&config, &config_size);
282 inc_path = get_inc_path(source_file);
295 static int pre_process_conf(const char *source_file, const char *output_file,
301 err = pre_process_run(&tplg_pp, source_file, output_file,
311 static int compile(const char *source_file, const char *output_file, int cflags,
321 err = load(source_file, (void **)&config, &config_size);
330 err = pre_process_run(&tplg_pp, source_file, NULL,
351 source_file, snd_strerror(-err));
359 static int decode(const char *source_file, const char *output_file,
368 if (load(source_file, &bin, &size))
380 source_file, snd_strerror(-err));
438 char *source_file = NULL;
467 if (source_file) {
471 source_file = optarg;
482 source_file = optarg;
515 if (source_file == NULL || output_file == NULL) {
537 err = compile(source_file, output_file, cflags, pre_processor_defs, inc_path);
540 err = decode(source_file, output_file, cflags, dflags, sflags);
543 err = pre_process_conf(source_file, output_file, pre_processor_defs, inc_path);
546 err = dump(source_file, output_file, cflags, sflags);