| @@ -240,7 +240,7 @@ extern "C" { · 239 unmodified lines |
| 240 | * relational operators (<, >, <=, >=). | 240 | * relational operators (<, >, <=, >=). |
| 241 | */ | 241 | */ |
| 242 | #define MPV_MAKE_VERSION(major, minor) (((major) << 16) | (minor) | 0UL) | 242 | #define MPV_MAKE_VERSION(major, minor) (((major) << 16) | (minor) | 0UL) |
| 243 | #define MPV_CLIENT_API_VERSION MPV_MAKE_VERSION(2, 0) | 243 | #define MPV_CLIENT_API_VERSION MPV_MAKE_VERSION(2, 1) |
| 244 | | 244 | |
| 245 | /** | 245 | /** |
| 246 | * The API user is allowed to "#define MPV_ENABLE_DEPRECATED 0" before | 246 | * The API user is allowed to "#define MPV_ENABLE_DEPRECATED 0" before |
| @@ -1068,6 +1068,16 @@ MPV_EXPORT int mpv_set_property(mpv_handle *ctx, const char *name, mpv_format fo · 821 unmodified lines |
| 1068 | */ | 1068 | */ |
| 1069 | MPV_EXPORT int mpv_set_property_string(mpv_handle *ctx, const char *name, const char *data); | 1069 | MPV_EXPORT int mpv_set_property_string(mpv_handle *ctx, const char *name, const char *data); |
| 1070 | | 1070 | |
| | 1071 | /** |
| | 1072 | * Convenience function to delete a property. |
| | 1073 | * |
| | 1074 | * This is equivalent to running the command "del [name]". |
| | 1075 | * |
| | 1076 | * @param name The property name. See input.rst for a list of properties. |
| | 1077 | * @return error code |
| | 1078 | */ |
| | 1079 | MPV_EXPORT int mpv_del_property(mpv_handle *ctx, const char *name); |
| | 1080 | |
| 1071 | /** | 1081 | /** |
| 1072 | * Set a property asynchronously. You will receive the result of the operation | 1082 | * Set a property asynchronously. You will receive the result of the operation |
| 1073 | * as MPV_EVENT_SET_PROPERTY_REPLY event. The mpv_event.error field will contain | 1083 | * as MPV_EVENT_SET_PROPERTY_REPLY event. The mpv_event.error field will contain |