From 9fd2e449defa49128b07270ed9397970e0ca12ca Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 21 Apr 2013 03:18:32 +0200 Subject: 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. --- core/m_option.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'core/m_option.h') 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)) -- cgit v1.2.3