diff --git a/include/vlc_vout_window.h b/include/vlc_vout_window.h index 11752116bf378987aa4a0b5d77a451cbb0b5f607..aea7a1f4cd56ee86f9ca061ed57a9fbe3222f506 100644 --- a/include/vlc_vout_window.h +++ b/include/vlc_vout_window.h @@ -575,23 +575,14 @@ static inline void vout_window_ReportState(vout_window_t *window, * This notifies the owner of the window that the window is windowed, i.e. not * in full screen mode. */ -static inline void vout_window_ReportWindowed(vout_window_t *window) -{ - if (window->owner.cbs->windowed != NULL) - window->owner.cbs->windowed(window); -} +VLC_API void vout_window_ReportWindowed(vout_window_t *wnd); /** * Reports that the window is in full screen. * * \param id fullscreen output nul-terminated identifier, NULL for default */ -static inline void vout_window_ReportFullscreen(vout_window_t *window, - const char *id) -{ - if (window->owner.cbs->fullscreened != NULL) - window->owner.cbs->fullscreened(window, id); -} +VLC_API void vout_window_ReportFullscreen(vout_window_t *wnd, const char *id); static inline void vout_window_SendMouseEvent(vout_window_t *window, const vout_window_mouse_event_t *mouse) diff --git a/src/libvlccore.sym b/src/libvlccore.sym index 347522e68c1b872f767c1130dd3eb2de2ef6d6c6..ed5e1ee66106fdeb76dd19356ca091208ded9b01 100644 --- a/src/libvlccore.sym +++ b/src/libvlccore.sym @@ -765,6 +765,8 @@ vout_window_New vout_window_Delete vout_window_Enable vout_window_Disable +vout_window_ReportWindowed +vout_window_ReportFullscreen vout_display_GetDefaultDisplaySize vout_display_PlacePicture vout_display_SendEventPicturesInvalid diff --git a/src/video_output/window.c b/src/video_output/window.c index f6599b3effd8bf46f076820a284ab219b9c2519c..3eba9d8344553b29aa2d5197a0c9b4839974e2b4 100644 --- a/src/video_output/window.c +++ b/src/video_output/window.c @@ -127,6 +127,18 @@ void vout_window_SetInhibition(vout_window_t *window, bool enabled) vlc_inhibit_Set(w->inhibit, flags); } +void vout_window_ReportWindowed(vout_window_t *window) +{ + if (window->owner.cbs->windowed != NULL) + window->owner.cbs->windowed(window); +} + +void vout_window_ReportFullscreen(vout_window_t *window, const char *id) +{ + if (window->owner.cbs->fullscreened != NULL) + window->owner.cbs->fullscreened(window, id); +} + /* Video output display integration */ #include <vlc_vout.h> #include <vlc_vout_display.h>