summaryrefslogtreecommitdiff
path: root/src/platform.h
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrikboy@gmail.com>2024-03-12 21:45:35 +0100
committerAldrik Ramaekers <aldrikboy@gmail.com>2024-03-12 21:45:35 +0100
commite72c327a84d1937c05cc14a5e2ab232584e2cb9d (patch)
tree96d58fa0f0065c577bcc87bc094498d2348b3ca3 /src/platform.h
parente4d2929604792b135cbf8dad22179a5dec60e365 (diff)
dragdrop file work
Diffstat (limited to 'src/platform.h')
-rw-r--r--src/platform.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/platform.h b/src/platform.h
index 3f41e4f..5926aeb 100644
--- a/src/platform.h
+++ b/src/platform.h
@@ -4,6 +4,7 @@
#include "array.h"
#include "memory_bucket.h"
#include "search.h"
+#include "config.h"
#include "../utf8.h"
typedef struct t_ts_file_content
@@ -29,7 +30,16 @@ typedef enum t_ts_file_open_error
FILE_ERROR_TOO_BIG = 11,
} ts_file_open_error;
+typedef struct t_ts_dragdrop_data
+{
+ bool did_drop;
+ utf8_int8_t path[MAX_INPUT_LENGTH];
+ bool is_dragging_file;
+} ts_dragdrop_data;
+
+
extern bool program_running;
+extern ts_dragdrop_data dragdrop_data;
bool ts_platform_dir_exists(utf8_int8_t* dir);
ts_file_content ts_platform_read_file(char *path, const char *mode);