summaryrefslogtreecommitdiffstats
path: root/common/global.h
blob: 8adc59e02cd452a7e3cbbcca5e12b3a2a89094ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef MPV_MPV_H
#define MPV_MPV_H

// This should be accessed by glue code only, never normal code.
// The only purpose of this is to make mpv library-safe.
// Think hard before adding new members.
struct mpv_global {
    struct mp_log *log;
    struct m_config_shadow *config;
    struct mp_client_api *client_api;
    char *configdir;

    // Using this is deprecated and should be avoided (missing synchronization).
    // Use m_config_cache to access mpv_global.config instead.
    struct MPOpts *opts;
};

#endif