Debian Codegraph @

include/cli_output.h

raw
1 /*
2 * This file is part of the flashrom project.
3 *
4 * Copyright 2024 Antonio Vázquez Blanco <[email protected]>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 */
16
17 #ifndef __CLI_OUTPUT_H__
18 #define __CLI_OUTPUT_H__
19
20 #include <stdarg.h>
21 #include "flash.h"
22
23 extern enum flashrom_log_level verbose_screen;
24 extern enum flashrom_log_level verbose_logfile;
25 int open_logfile(const char * const filename);
26 int close_logfile(void);
27 void start_logging(void);
28 int flashrom_print_cb(enum flashrom_log_level level, const char *fmt, va_list ap);
29 void flashrom_progress_cb(enum flashrom_progress_stage stage, size_t current, size_t total, void* user_data);
30
31 #endif /* __CLI_OUTPUT_H__ */