Viewing file on branch master
| 1 | #ifndef CONFIG_H |
| 2 | #define CONFIG_H |
| 3 | |
| 4 | #include <stdbool.h> |
| 5 | |
| 6 | enum dir_sort_dirs { |
| 7 | DIR_SORT_DIRS_FIRST, |
| 8 | DIR_SORT_DIRS_LAST, |
| 9 | DIR_SORT_DIRS_UNSORTED, |
| 10 | }; |
| 11 | |
| 12 | enum dir_sortby { |
| 13 | DIR_SORTBY_NAME, |
| 14 | DIR_SORTBY_TIME, |
| 15 | DIR_SORTBY_SIZE, |
| 16 | }; |
| 17 | |
| 18 | enum dir_sort { |
| 19 | DIR_SORT_INCREASING, |
| 20 | DIR_SORT_DECREASING, |
| 21 | DIR_SORT_UNSORTED, |
| 22 | }; |
| 23 | |
| 24 | typedef struct { |
| 25 | bool longmode; |
| 26 | bool longinline; |
| 27 | bool dots; |
| 28 | bool humansize; |
| 29 | enum dir_sort_dirs dir_sort_dirs; |
| 30 | enum dir_sortby dir_sortby; |
| 31 | enum dir_sort dir_sort; |
| 32 | char * opener; |
| 33 | } config_t; |
| 34 | |
| 35 | extern config_t config; |
| 36 | |
| 37 | #endif /* CONFIG_H */ |
| 38 | |