From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=47288 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OOT1o-0003lo-8o for qemu-devel@nongnu.org; Tue, 15 Jun 2010 06:05:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OOT1m-0003Fd-Tg for qemu-devel@nongnu.org; Tue, 15 Jun 2010 06:05:56 -0400 Received: from mx1.redhat.com ([209.132.183.28]:59225) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OOT1m-0003FF-Fq for qemu-devel@nongnu.org; Tue, 15 Jun 2010 06:05:54 -0400 Received: from int-mx04.intmail.prod.int.phx2.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.17]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o5FA5rcj025738 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 15 Jun 2010 06:05:53 -0400 From: Gerd Hoffmann Date: Tue, 15 Jun 2010 12:05:44 +0200 Message-Id: <1276596347-9410-3-git-send-email-kraxel@redhat.com> In-Reply-To: <1276596347-9410-1-git-send-email-kraxel@redhat.com> References: <1276596347-9410-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [PATCH 2/5] add unregister_displaychangelistener List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Gerd Hoffmann Signed-off-by: Gerd Hoffmann --- console.h | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) 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; -- 1.6.5.2