summaryrefslogtreecommitdiffstats
path: root/input/event.h
diff options
context:
space:
mode:
Diffstat (limited to 'input/event.h')
-rw-r--r--input/event.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/input/event.h b/input/event.h
index a1cb542f8f..e2ce36b329 100644
--- a/input/event.h
+++ b/input/event.h
@@ -19,10 +19,16 @@
struct input_ctx;
+enum mp_dnd_action {
+ DND_REPLACE,
+ DND_APPEND,
+};
+
// Enqueue files for playback after drag and drop
-void mp_event_drop_files(struct input_ctx *ictx, int num_files, char **files);
+void mp_event_drop_files(struct input_ctx *ictx, int num_files, char **files,
+ enum mp_dnd_action append);
// Drop data in a specific format (identified by the mimetype).
// Returns <0 on error, ==0 if data was ok but empty, >0 on success.
int mp_event_drop_mime_data(struct input_ctx *ictx, const char *mime_type,
- bstr data);
+ bstr data, enum mp_dnd_action append);