aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorThorsten Töpper <atsutane@freethoughts.de>2025-06-21 17:40:06 +0200
committerThorsten Töpper <atsutane@freethoughts.de>2025-06-21 17:40:06 +0200
commit0bbb8b27ac2d5d7a20a6f05610e2f897d5db3878 (patch)
treed10e3a12bce04f19c273195df1afa3e3683677aa /include
parentc158359c77660216ccfd6ad15d3a2a061c024a2b (diff)
downloaddir_monitor-0bbb8b27ac2d5d7a20a6f05610e2f897d5db3878.tar.gz
dir_monitor-0bbb8b27ac2d5d7a20a6f05610e2f897d5db3878.tar.bz2
Output sorted by name
Diffstat (limited to 'include')
-rw-r--r--include/data_management.h1
-rw-r--r--include/options.h2
2 files changed, 2 insertions, 1 deletions
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 === */