diff options
| author | yuzu-eva <cafebabe@disroot.org> | 2025-06-08 14:33:02 +0200 |
|---|---|---|
| committer | yuzu-eva <cafebabe@disroot.org> | 2025-06-08 14:33:02 +0200 |
| commit | 390cbf31635951e46a49ed8657cd2a1635757f19 (patch) | |
| tree | 89f1d51b926017cc5bbcdd88ad503fb20743223c /src/enum.h | |
| parent | b7e05ac5c2cb8f169b1cf66926faddcf7f15b7cc (diff) | |
changed project structure, adjusted Makefilerefactor
Diffstat (limited to 'src/enum.h')
| -rw-r--r-- | src/enum.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/enum.h b/src/enum.h new file mode 100644 index 0000000..65cde6f --- /dev/null +++ b/src/enum.h @@ -0,0 +1,29 @@ +#ifndef _ENUM_ +#define _ENUM_ + +#include <string.h> + +typedef enum { + GET, + SET, + ADD, + ANIME, + MANGA, + BOOK, +} args_e; + +static const struct { + args_e val; + const char *str; +} conversion_args [] = { + {GET, "get"}, + {SET, "set"}, + {ADD, "add"}, + {ANIME, "anime"}, + {MANGA, "manga"}, + {BOOK, "book"}, +}; + +args_e str2enum(const char *str); + +#endif |
