From patchwork Fri Jun 4 14:43:01 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gerd Hoffmann X-Patchwork-Id: 54603 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 1DC70B7D43 for ; Sat, 5 Jun 2010 01:01:07 +1000 (EST) Received: from localhost ([127.0.0.1]:60445 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OKYON-0002d9-GE for incoming@patchwork.ozlabs.org; Fri, 04 Jun 2010 11:01:03 -0400 Received: from [140.186.70.92] (port=33313 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OKY7C-000294-2H for qemu-devel@nongnu.org; Fri, 04 Jun 2010 10:43:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OKY7A-0008WA-FA for qemu-devel@nongnu.org; Fri, 04 Jun 2010 10:43:17 -0400 Received: from mx1.redhat.com ([209.132.183.28]:19562) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OKY7A-0008W2-6Z for qemu-devel@nongnu.org; Fri, 04 Jun 2010 10:43:16 -0400 Received: from int-mx03.intmail.prod.int.phx2.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o54EhEbv009880 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 4 Jun 2010 10:43:15 -0400 Received: from zweiblum.home.kraxel.org (vpn1-4-214.ams2.redhat.com [10.36.4.214]) by int-mx03.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o54EhABR027400; Fri, 4 Jun 2010 10:43:12 -0400 Received: by zweiblum.home.kraxel.org (Postfix, from userid 500) id CF2BB70127; Fri, 4 Jun 2010 16:43:02 +0200 (CEST) From: Gerd Hoffmann To: qemu-devel@nongnu.org Date: Fri, 4 Jun 2010 16:43:01 +0200 Message-Id: <1275662582-17495-2-git-send-email-kraxel@redhat.com> In-Reply-To: <1275662582-17495-1-git-send-email-kraxel@redhat.com> References: <1275662582-17495-1-git-send-email-kraxel@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.16 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. Cc: Gerd Hoffmann Subject: [Qemu-devel] [PATCH 2/3] add unregister_displaychangelistener X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Signed-off-by: Gerd Hoffmann --- console.h | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) 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;