mirror of
https://github.com/mpv-player/mpv
synced 2024-12-22 14:52:43 +00:00
3dd12104d9
This library will export the client API functions. Note that this doesn't allow compiling the command line player to link against this library yet. The reason is that there's lots of weird stuff required to setup the execution environment (mostly Windows and OSX specifics), as well as things which are out of scope of the client API and every application has to do on its own. However, since the mpv command line player basically reuses functions from the mpv core to implement these things, it's not very easy to separate the command line player form the mpv core.
16 lines
243 B
C
16 lines
243 B
C
#include "config.h"
|
|
#include "core.h"
|
|
|
|
#if HAVE_COCOA
|
|
#include "osdep/macosx_application.h"
|
|
#endif
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
#if HAVE_COCOA
|
|
return cocoa_main(mpv_main, argc, argv);
|
|
#else
|
|
return mpv_main(argc, argv);
|
|
#endif
|
|
}
|