kfetch/include/structs.h

36 lines
469 B
C
Raw Normal View History

2024-06-07 11:41:51 +00:00
#ifndef _STRUCTS_H
#define _STRUCTS_H
#include <sys/utsname.h>
#define OS_SIZE 128
typedef struct {
char os_name[OS_SIZE + 1];
struct utsname uts;
char *pkg_cmd;
2024-10-20 09:03:05 +00:00
char *logo_color;
char *font_color;
2024-06-07 11:41:51 +00:00
size_t logo_size;
char **logo;
} FETCH;
struct par {
2024-09-09 11:21:26 +00:00
/* Text before */
2024-06-07 11:41:51 +00:00
char *str0;
2024-09-09 11:21:26 +00:00
/* Text after */
2024-06-07 11:41:51 +00:00
char *str1;
2024-09-09 11:21:26 +00:00
/* Command */
2024-06-07 11:41:51 +00:00
char *str2;
};
typedef struct {
int (*func)(const struct par par, const FETCH fetch);
struct par par;
} PARAMETR;
#endif