diff options
author | Uoti Urpala <uau@symbol.nonexistent.invalid> | 2008-03-31 06:19:29 +0300 |
---|---|---|
committer | Uoti Urpala <uau@symbol.nonexistent.invalid> | 2008-04-23 13:41:05 +0300 |
commit | 9db0c118d3acee07880472e590dc0a25e5b51be6 (patch) | |
tree | f7b1664d28d5300bde7f863c8d32324a427112d2 /m_config.h | |
parent | f894294bae1ff9b2c1802a5ae7e73cfdbc26e645 (diff) | |
download | mpv-9db0c118d3acee07880472e590dc0a25e5b51be6.tar.bz2 mpv-9db0c118d3acee07880472e590dc0a25e5b51be6.tar.xz |
Start of new option system
First part of option restructuring. The aim is to move option values
from a huge number of separate globals to a single non-global struct.
This part adds some support for parsing option values into such struct
instances, and moves one example option (fixed-vo) to the struct.
Diffstat (limited to 'm_config.h')
-rw-r--r-- | m_config.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/m_config.h b/m_config.h index e6b8bc9247..889ff597ed 100644 --- a/m_config.h +++ b/m_config.h @@ -78,6 +78,8 @@ typedef struct m_config { int profile_depth; /// Options defined by the config itself. struct m_option* self_opts; + + void *optstruct; // struct mpopts or other } m_config_t; /// \defgroup ConfigOptionFlags Config option flags @@ -96,7 +98,7 @@ typedef struct m_config { /** \ingroup Config */ m_config_t* -m_config_new(void); +m_config_new(void *optstruct); /// Free a config object. void |