From 16e951c2cdfa6710f0d5cc77b513e0f2a5f1377d Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 1 Mar 2013 15:55:08 +0100 Subject: gl_common: split into platform specific files Do this instead of stuffing all x11/cocoa/win32/wayland specific code into gl_common.c. The cocoa specific parts could probably go directly into cocoa_common.m, possibly same with wayland. Also redo how the list of backends is managed. Get rid of the GLTYPE_ constants. Instead of having a big switch() on GLTYPE_, each backend entry has a function pointer to setup the MPGLContext callback (e.g. mpgl_set_backend_x11()). --- video/out/w32_common.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'video/out/w32_common.h') diff --git a/video/out/w32_common.h b/video/out/w32_common.h index a71ccaa661..d8df37d6fa 100644 --- a/video/out/w32_common.h +++ b/video/out/w32_common.h @@ -49,6 +49,8 @@ struct vo_w32_state { int mon_id; }; +struct vo; + int vo_w32_init(struct vo *vo); void vo_w32_uninit(struct vo *vo); void vo_w32_ontop(struct vo *vo); -- cgit v1.2.3