[v0.03] Add printer backend from cpufetch (still printing CPU logo)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user