diff options
author | wm4 <wm4@nowhere> | 2013-04-21 03:18:32 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-04-21 03:48:30 +0200 |
commit | 9fd2e449defa49128b07270ed9397970e0ca12ca (patch) | |
tree | 625a69dd6b9db266d4ec96653b182ce35b95026f /core/m_option.h | |
parent | c6037982fda4815cc36ead7370bce9fc60ef7747 (diff) | |
download | mpv-9fd2e449defa49128b07270ed9397970e0ca12ca.tar.bz2 mpv-9fd2e449defa49128b07270ed9397970e0ca12ca.tar.xz |
m_option: add function to check whether parameters are required
To avoid that it will be duplicated with m_option.c and m_config.c.
Diffstat (limited to 'core/m_option.h')
-rw-r--r-- | core/m_option.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/m_option.h b/core/m_option.h index dd1dbd3d75..0026406569 100644 --- a/core/m_option.h +++ b/core/m_option.h @@ -464,6 +464,8 @@ static inline void m_option_free(const m_option_t *opt, void *dst) opt->type->free(dst); } +int m_option_required_params(const m_option_t *opt); + // Cause a compilation warning if typeof(expr) != type. // Should be used with pointer types only. #define MP_EXPECT_TYPE(type, expr) (0 ? (type)0 : (expr)) |