summaryrefslogtreecommitdiff
path: root/src/platform.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/platform.h')
-rw-r--r--src/platform.h14
1 files changed, 7 insertions, 7 deletions
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