Lines Matching refs:output_file
165 static int save(const char *output_file, void *buf, size_t size)
171 if (strcmp(output_file, "-") == 0) {
174 fname = alloca(strlen(output_file) + 5);
175 strcpy(fname, output_file);
210 if (fname && rename(fname, output_file)) {
212 fname, output_file, strerror(errno));
219 static int dump(const char *source_file, const char *output_file, int cflags, int sflags)
240 err = save(output_file, text, strlen(text));
259 const char *source_file, const char *output_file,
272 output_type = output_file == NULL ? SND_OUTPUT_BUFFER : SND_OUTPUT_STDIO;
273 err = init_pre_processor(tplg_pp, output_type, output_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,
354 err = save(output_file, bin, size);
359 static int decode(const char *source_file, const char *output_file,
390 err = save(output_file, text, strlen(text));
439 char *output_file = NULL;
475 output_file = optarg;
515 if (source_file == NULL || output_file == NULL) {
521 output_file && strcmp(output_file, "-") == 0) {
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);