summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorMitya Selivanov <automainint@guattari.tech>2023-03-28 14:17:16 +0200
committerMitya Selivanov <automainint@guattari.tech>2023-03-28 14:17:16 +0200
commite39d6fd3928aea4a0252003e632fb1d7bf256c76 (patch)
tree5910fe3abe50155271e86a36a9d52541354f1159 /source
parent561523996a48eb016e5e10b62bb0ddfa2bb984c6 (diff)
downloadkit-e39d6fd3928aea4a0252003e632fb1d7bf256c76.zip
build_c
Diffstat (limited to 'source')
-rw-r--r--source/kit/file.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/source/kit/file.h b/source/kit/file.h
index 258fc37..52ebe25 100644
--- a/source/kit/file.h
+++ b/source/kit/file.h
@@ -19,12 +19,6 @@ extern "C" {
# define KIT_ENV_HOME "HOME"
#endif
-typedef enum {
- KIT_PATH_NONE,
- KIT_PATH_FILE,
- KIT_PATH_FOLDER
-} kit_path_type_t;
-
kit_string_t kit_path_norm(kit_str_t path, kit_allocator_t alloc);
kit_string_t kit_path_join(kit_str_t left, kit_str_t right,
@@ -49,6 +43,12 @@ kit_status_t kit_file_remove_folder(kit_str_t path);
kit_status_t kit_file_remove_recursive(kit_str_t path,
kit_allocator_t alloc);
+typedef enum {
+ KIT_PATH_NONE,
+ KIT_PATH_FILE,
+ KIT_PATH_FOLDER
+} kit_path_type_t;
+
kit_path_type_t kit_path_type(kit_str_t path);
typedef struct {
@@ -84,10 +84,10 @@ void kit_path_list_destroy(kit_path_list_t list);
# define file_remove kit_file_remove
# define file_remove_folder kit_file_remove_folder
# define file_remove_recursive kit_file_remove_recursive
-# define path_type kit_path_type
-# define file_size_result_t kit_file_size_result_t
-# define file_size kit_file_size
# define path_type_t kit_path_type_t
+# define path_type kit_path_type
+# define file_info_t kit_file_info_t
+# define file_info kit_file_info
# define path_list_t kit_path_list_t
# define file_enum_folder kit_file_enum_folder
# define path_list_destroy kit_path_list_destroy