diff options
Diffstat (limited to 'input/event.h')
-rw-r--r-- | input/event.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/input/event.h b/input/event.h index 3a06ce1d1d..cf8e35ac8d 100644 --- a/input/event.h +++ b/input/event.h @@ -32,3 +32,8 @@ void mp_event_drop_files(struct input_ctx *ictx, int num_files, char **files, // 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, enum mp_dnd_action append); + +// Many drag & drop APIs support multiple mime types, and this function returns +// whether a type is preferred (higher integer score), or supported (scores +// below 0 indicate unsupported types). +int mp_event_get_mime_type_score(struct input_ctx *ictx, const char *mime_type); |