summaryrefslogtreecommitdiffstats
path: root/stream/dvbin.h
diff options
context:
space:
mode:
authorOliver Freyermuth <o.freyermuth@googlemail.com>2016-01-07 23:30:46 +0100
committerwm4 <wm4@nowhere>2016-01-14 00:36:53 +0100
commit4c3f95708f7176b52f979d860ce0b98d16e184d0 (patch)
treeda47e34eddd02de836ccc44974c3008d8aae9386 /stream/dvbin.h
parent9a88b118b4ffe22f1747375b42bc57f3b5d33ed0 (diff)
downloadmpv-4c3f95708f7176b52f979d860ce0b98d16e184d0.tar.bz2
mpv-4c3f95708f7176b52f979d860ce0b98d16e184d0.tar.xz
dvb: rename dvb_config_t to dvb_state_t, keep config and state there.
The state-struct now contains everything which can be kept after initial initialization. This includes the channel-lists, configuration, device-fds and also information like current channel and current card. The dvb_priv_t is kept containing the mp-options, a pointer to the state and to the logger. After this restructuring, the state-struct contains all information which can be persisted across channel switching.
Diffstat (limited to 'stream/dvbin.h')
-rw-r--r--stream/dvbin.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/stream/dvbin.h b/stream/dvbin.h
index a25d2dc933..422e6c713c 100644
--- a/stream/dvbin.h
+++ b/stream/dvbin.h
@@ -90,23 +90,24 @@ typedef struct {
typedef struct {
int count;
dvb_card_config_t *cards;
- void *priv;
-} dvb_config_t;
-typedef struct dvb_params {
- struct mp_log *log;
int card;
int fe_fd;
int dvr_fd;
int demux_fd[3], demux_fds[DMX_FILTER_SIZE], demux_fds_cnt;
- dvb_config_t *config;
dvb_channels_list *list;
int tuner_type;
int is_on;
int retry;
int timeout;
int last_freq;
+} dvb_state_t;
+
+typedef struct dvb_params {
+ struct mp_log *log;
+
+ dvb_state_t *state;
char *cfg_prog;
int cfg_card;
@@ -123,7 +124,7 @@ typedef struct dvb_params {
int dvb_step_channel(stream_t *, int);
int dvb_set_channel(stream_t *, int, int);
-dvb_config_t *dvb_get_config(stream_t *);
-void dvb_free_config(dvb_config_t *config);
+dvb_state_t *dvb_get_state(stream_t *);
+void dvb_free_state(dvb_state_t *);
#endif /* MPLAYER_DVBIN_H */