diff options
author | wm4 <wm4@nowhere> | 2013-12-21 23:15:32 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-12-21 23:15:32 +0100 |
commit | 0a3e9a9ac3a90da831b497e0613dfb66bc14f3d2 (patch) | |
tree | b70f214f8c3fc802d6d6edbf8395273c854ac0fd /player/core.h | |
parent | a4fe95b0d8d339ba5afbdb5346ad8fd367a4a1c1 (diff) | |
parent | 245e5b844177e9ad9a9c07eff5efab7c3fccdebc (diff) | |
download | mpv-0a3e9a9ac3a90da831b497e0613dfb66bc14f3d2.tar.bz2 mpv-0a3e9a9ac3a90da831b497e0613dfb66bc14f3d2.tar.xz |
Merge branch 'msg_refactor'
This branch changes mp_msg() so that it doesn't require global context.
The changes are pretty violent.
Diffstat (limited to 'player/core.h')
-rw-r--r-- | player/core.h | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/player/core.h b/player/core.h index a344b92ac3..711c99840b 100644 --- a/player/core.h +++ b/player/core.h @@ -147,6 +147,7 @@ typedef struct MPContext { struct mpv_global *global; struct MPOpts *opts; struct mp_log *log; + struct mp_log *statusline; struct m_config *mconfig; struct input_ctx *input; struct osd_state *osd; @@ -313,6 +314,7 @@ typedef struct MPContext { */ struct ass_renderer *ass_renderer; struct ass_library *ass_library; + struct mp_log *ass_log; int last_dvb_step; @@ -347,17 +349,12 @@ void clear_audio_decode_buffers(struct MPContext *mpctx); // configfiles.c bool mp_parse_cfgfiles(struct MPContext *mpctx); -char *mp_get_playback_resume_config_filename(const char *fname, - struct MPOpts *opts); -void mp_load_per_protocol_config(struct m_config *conf, const char * const file); -void mp_load_per_extension_config(struct m_config *conf, const char * const file); -void mp_load_per_output_config(struct m_config *conf, char *cfg, char *out); -void mp_load_per_file_config(struct m_config *conf, const char * const file, - bool search_file_dir); -void mp_load_playback_resume(struct m_config *conf, const char *file); +void mp_load_auto_profiles(struct MPContext *mpctx); +void mp_load_per_file_config(struct MPContext *mpctx); +void mp_load_playback_resume(struct MPContext *mpctx, const char *file); void mp_write_watch_later_conf(struct MPContext *mpctx); -struct playlist_entry *mp_resume_playlist(struct playlist *playlist, - struct MPOpts *opts); +struct playlist_entry *mp_check_playlist_resume(struct MPContext *mpctx, + struct playlist *playlist); // dvdnav.c void mp_nav_init(struct MPContext *mpctx); @@ -386,7 +383,7 @@ void mp_set_playlist_entry(struct MPContext *mpctx, struct playlist_entry *e); void mp_play_files(struct MPContext *mpctx); // main.c -void mp_print_version(int always); +void mp_print_version(struct mp_log *log, int always); // misc.c double get_start_time(struct MPContext *mpctx); |