From b8d8eaa8b2c46f79e8a580a402ec7c472075d073 Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Sun, 3 Mar 2024 16:13:02 +0100 Subject: enforce naming convention --- src/platform.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/platform.h') diff --git a/src/platform.h b/src/platform.h index 66cdcb1..8429058 100644 --- a/src/platform.h +++ b/src/platform.h @@ -6,14 +6,14 @@ #include "search.h" #include "../utf8.h" -typedef struct t_file_content +typedef struct t_ts_file_content { int content_length; void *content; int file_error; -} file_content; +} ts_file_content; -typedef enum t_file_open_error +typedef enum t_ts_file_open_error { FILE_ERROR_TOO_MANY_OPEN_FILES_PROCESS = 1, FILE_ERROR_TOO_MANY_OPEN_FILES_SYSTEM = 2, @@ -26,10 +26,10 @@ typedef enum t_file_open_error FILE_ERROR_STALE = 9, // NFS server file is removed/renamed FILE_ERROR_GENERIC = 10, FILE_ERROR_TOO_BIG = 11, -} file_open_error; +} ts_file_open_error; -file_content platform_read_file(char *path, const char *mode); -void platform_list_files_block(search_result* result, wchar_t* start_dir = nullptr); -void platform_list_files(search_result* result); +ts_file_content ts_platform_read_file(char *path, const char *mode); +void ts_platform_list_files_block(ts_search_result* result, wchar_t* start_dir = nullptr); +void ts_platform_list_files(ts_search_result* result); #endif \ No newline at end of file -- cgit v1.2.3-70-g09d2