Patchwork [2/3] add unregister_displaychangelistener

login
register
mail settings
Submitter Gerd Hoffmann
Date June 4, 2010, 2:43 p.m.
Message ID <1275662582-17495-2-git-send-email-kraxel@redhat.com>
Download mbox | patch
Permalink /patch/54603/
State New
Headers show

Comments

Gerd Hoffmann - June 4, 2010, 2:43 p.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 3a80dca..a0da498 100644
--- a/console.h
+++ b/console.h
@@ -227,6 +227,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;