summaryrefslogtreecommitdiffstats
path: root/core/m_option.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-07-31 20:45:06 +0200
committerwm4 <wm4@nowhere>2013-07-31 20:56:00 +0200
commitd1de1e090f91a254f066505ee5811feda4d93dde (patch)
tree154365282fb60ceea2f44951fb96a9b48c044ad2 /core/m_option.h
parentd6592dd2e209ea6b10231206e8b5d856bef8afaa (diff)
downloadmpv-d1de1e090f91a254f066505ee5811feda4d93dde.tar.bz2
mpv-d1de1e090f91a254f066505ee5811feda4d93dde.tar.xz
options: handle presets directly in m_config
This means that "mpv -vo opengl-hq:help" will actually show the correct defaults, instead those of plain vo_opengl.
Diffstat (limited to 'core/m_option.h')
-rw-r--r--core/m_option.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/m_option.h b/core/m_option.h
index 9cd5202b90..6d44ce6696 100644
--- a/core/m_option.h
+++ b/core/m_option.h
@@ -32,6 +32,7 @@
typedef struct m_option_type m_option_type_t;
typedef struct m_option m_option_t;
struct m_struct_st;
+struct m_config;
///////////////////////////// Options types declarations ////////////////////
@@ -150,6 +151,10 @@ typedef struct m_obj_settings {
*/
extern const m_option_type_t m_option_type_obj_settings_list;
+int m_obj_parse_sub_config(struct bstr opt_name, struct bstr name,
+ struct bstr *pstr, struct m_config *config,
+ int flags, char ***ret);
+
// Parse an URL into a struct.
/** The option priv field (\ref m_option::priv) must point to a
* \ref m_struct_st describing which fields of the URL must be used.