[vlc-commits] window: define close event

Rémi Denis-Courmont git at videolan.org
Thu Oct 16 19:26:04 CEST 2014


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Oct 12 16:17:49 2014 +0300| [1d3367a4e131783e151bd1445490a80bb451bc9c] | committer: Rémi Denis-Courmont

window: define close event

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1d3367a4e131783e151bd1445490a80bb451bc9c
---

 include/vlc_vout_window.h |    7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/include/vlc_vout_window.h b/include/vlc_vout_window.h
index e9595c7..6f38df4 100644
--- a/include/vlc_vout_window.h
+++ b/include/vlc_vout_window.h
@@ -83,6 +83,7 @@ typedef struct {
 typedef struct vout_window_owner {
     void *sys;
     void (*resized)(vout_window_t *, unsigned width, unsigned height);
+    void (*closed)(vout_window_t *);
 } vout_window_owner_t;
 
 /**
@@ -200,4 +201,10 @@ static inline void vout_window_ReportSize(vout_window_t *window,
         window->owner.resized(window, width, height);
 }
 
+static inline void vout_window_ReportClose(vout_window_t *window)
+{
+    if (window->owner.closed != NULL)
+        window->owner.closed(window);
+}
+
 #endif /* VLC_VOUT_WINDOW_H */



More information about the vlc-commits mailing list