summaryrefslogtreecommitdiffstats
path: root/options/m_option.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-06-29 18:09:30 +0200
committerwm4 <wm4@nowhere>2016-06-29 18:09:30 +0200
commit9ed5dae4804512d40b050007b282eef8daff8818 (patch)
tree9e8a11e9dbcda59f8cd288f4abf57d1167c3815d /options/m_option.h
parentc6953bfa8cfe595587913aef6c105e14187e5660 (diff)
downloadmpv-9ed5dae4804512d40b050007b282eef8daff8818.tar.bz2
mpv-9ed5dae4804512d40b050007b282eef8daff8818.tar.xz
options: add a deprecation warning printing mechanism
We have a warning mechanism for removed and for replaced options, but none yet for options which have been simply deprecated. For the following commit. (Fun fact: just adding the m_option field increases binary size by 14KB.)
Diffstat (limited to 'options/m_option.h')
-rw-r--r--options/m_option.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/options/m_option.h b/options/m_option.h
index 4066a36d81..e77452af69 100644
--- a/options/m_option.h
+++ b/options/m_option.h
@@ -333,6 +333,10 @@ struct m_option {
// Initialize variable to given default before parsing options
const void *defval;
+
+ // Print a warning when this option is used (for options with no direct
+ // replacement.)
+ const char *deprecation_message;
};