From eb381cbd4b38dd496ee0be609f1a66c360a76448 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 12 Mar 2020 23:07:05 +0100 Subject: options: split m_config.c/h Move the "old" mostly command line parsing and option management related code to m_config_frontend.c/h. Move the the code that enables other part of the player to access options to m_config_core.c/h. "frontend" is out of lack of creativity for a better name. Unfortunately, the separation isn't quite clean yet. m_config_frontend.c still references some m_config_core.c implementation details, and m_config_new() is even left in m_config_core.c for now. There some odd functions that should be removed as well (marked as "Bad functions"). Fixing these things requires more changes and will be done separately. struct m_config is left with the current name to reduce diff noise. Also, since there are a _lot_ source files that include m_config.h, add a replacement m_config.h that "redirects" to m_config_core.h. --- filters/user_filters.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'filters') diff --git a/filters/user_filters.c b/filters/user_filters.c index e9ccec507d..72a2ab892c 100644 --- a/filters/user_filters.c +++ b/filters/user_filters.c @@ -4,7 +4,7 @@ #include "common/common.h" #include "common/msg.h" -#include "options/m_config.h" +#include "options/m_config_frontend.h" #include "f_lavfi.h" #include "user_filters.h" -- cgit v1.2.3