summaryrefslogtreecommitdiffstats
path: root/common/global.h
blob: e49169bebb11829dde34528c77e6448002a4d097 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#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 MPOpts *opts;
    struct mp_log *log;

    int (*stream_interrupt_cb)(void *ctx);
    void *stream_interrupt_cb_ctx;
};

#endif