Patchwork [2/5] add unregister_displaychangelistener

login
register
mail settings
Submitter Gerd Hoffmann
Date June 15, 2010, 10:05 a.m.
Message ID <1276596347-9410-3-git-send-email-kraxel@redhat.com>
Download mbox | patch
Permalink /patch/55623/
State New
Headers show

Comments

Gerd Hoffmann - June 15, 2010, 10:05 a.m.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
 console.h |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

Patch

diff --git a/console.h b/console.h
index 2263971..3f77661 100644
--- a/console.h
+++ b/console.h
@@ -228,6 +228,11 @@  static inline void register_displaychangelistener(DisplayState *ds, DisplayChang
     QLIST_INSERT_HEAD(&ds->listeners, dcl, next);
 }
 
+static inline void unregister_displaychangelistener(DisplayChangeListener *dcl)
+{
+    QLIST_REMOVE(dcl, next);
+}
+
 static inline void dpy_update(DisplayState *s, int x, int y, int w, int h)
 {
     struct DisplayChangeListener *dcl;