From 0bbb8b27ac2d5d7a20a6f05610e2f897d5db3878 Mon Sep 17 00:00:00 2001 From: Thorsten Töpper Date: Sat, 21 Jun 2025 17:40:06 +0200 Subject: Output sorted by name --- include/data_management.h | 1 + include/options.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/data_management.h b/include/data_management.h index e5d1581..a8d3648 100644 --- a/include/data_management.h +++ b/include/data_management.h @@ -27,6 +27,7 @@ struct list_head *create_list_sort_reversed(struct list_head *list); void destroy_list(struct list_head *list); struct list_head *get_data_from_directory(char *path); +int insert_sorted_by_name(struct list_head *list, struct list_node *node); int insert_sorted_by_size(struct list_head *list, struct list_node *node); int insert_sorted_by_time(struct list_head *list, struct list_node *node); diff --git a/include/options.h b/include/options.h index cfc9246..5e951b2 100644 --- a/include/options.h +++ b/include/options.h @@ -21,7 +21,7 @@ #define PATH_SEP '/' #endif -enum esort_type { SORT_BY_SIZE, SORT_BY_TIME }; +enum esort_type { SORT_BY_NAME, SORT_BY_SIZE, SORT_BY_TIME }; /* === GLOBAL VARIABLES === */ -- cgit v1.2.3-70-g09d2