[v0.03] Add printer backend from cpufetch (still printing CPU logo)

This commit is contained in:
Dr-Noob
2021-08-15 23:23:36 +02:00
parent 8f31748d1e
commit 7ad484b938
13 changed files with 609 additions and 30 deletions

View File

@@ -3,6 +3,21 @@
#include <stdbool.h>
struct color {
int32_t R;
int32_t G;
int32_t B;
};
enum {
STYLE_EMPTY,
STYLE_FANCY,
STYLE_WILD,
STYLE_RETRO,
STYLE_LEGACY,
STYLE_INVALID
};
enum {
ARG_HELP,
ARG_VERSION
@@ -11,9 +26,14 @@ enum {
extern const char args_chr[];
extern const char *args_str[];
#include "printer.hpp"
int max_arg_str_length();
bool parse_args(int argc, char* argv[]);
bool show_help();
bool show_version();
void free_colors_struct(struct color** cs);
struct color** get_colors();
STYLE get_style();
#endif