Files
gpufetch/src/common/args.hpp
2021-08-23 22:39:31 +02:00

45 lines
619 B
C++

#ifndef __ARGS__
#define __ARGS__
#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_COLOR,
ARG_GPU,
ARG_LIST,
ARG_HELP,
ARG_VERSION
};
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 list_gpus();
bool show_version();
void free_colors_struct(struct color** cs);
int get_gpu_idx();
struct color** get_colors();
STYLE get_style();
#endif