summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2019-11-25 00:52:30 +0100
committerwm4 <wm4@nowhere>2019-11-25 00:52:30 +0100
commitd123af34b5a10f4ff6dc011bc462da68c94ef9fa (patch)
treeca63416df4cc7f8f54eb0024f6753f60b40c0588
parent3a2dc8b22e9f947c9cd3a91445b0731b8df1d798 (diff)
downloadmpv-d123af34b5a10f4ff6dc011bc462da68c94ef9fa.tar.bz2
mpv-d123af34b5a10f4ff6dc011bc462da68c94ef9fa.tar.xz
m_config: discourage mp_read_option_raw()
This function is dangerous, because it disables the already basic/week type checking the option system has at all. I'm tend towards thinking that all of its uses should be replaced.
-rw-r--r--options/m_config.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/options/m_config.h b/options/m_config.h
index 1b9648bd7f..a897ca053b 100644
--- a/options/m_config.h
+++ b/options/m_config.h
@@ -338,6 +338,7 @@ void *mp_get_config_group(void *ta_parent, struct mpv_global *global,
// Read a single global option in a thread-safe way. For multiple options,
// use m_config_cache. The option must exist and match the provided type (the
// type is used as a sanity check only). Performs semi-expensive lookup.
+// Warning: new code must not use this.
void mp_read_option_raw(struct mpv_global *global, const char *name,
const struct m_option_type *type, void *dst);