From 76918be2677306aa037448d5f6c108da6111afac Mon Sep 17 00:00:00 2001 From: Oliver Freyermuth Date: Tue, 1 Oct 2019 01:46:07 +0200 Subject: stream_dvb: Use separated out options struct. This also allows the use of m_config_cache_alloc which allows to watch config updates. --- stream/dvbin.h | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'stream/dvbin.h') diff --git a/stream/dvbin.h b/stream/dvbin.h index 01a70588a5..979ea208ba 100644 --- a/stream/dvbin.h +++ b/stream/dvbin.h @@ -117,16 +117,20 @@ typedef struct { } dvb_state_t; typedef struct { - struct mp_log *log; - - dvb_state_t *state; - char *cfg_prog; int cfg_devno; int cfg_timeout; char *cfg_file; - int cfg_full_transponder; +} dvb_opts_t; + +typedef struct { + struct mp_log *log; + + dvb_state_t *state; + + dvb_opts_t *opts; + struct m_config_cache *opts_cache; } dvb_priv_t; @@ -177,7 +181,6 @@ typedef struct { ) #endif - int dvb_step_channel(stream_t *, int); int dvb_set_channel(stream_t *, unsigned int, unsigned int); dvb_state_t *dvb_get_state(stream_t *); -- cgit v1.2.3