From patchwork Thu Dec 19 18:40:17 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Baboval X-Patchwork-Id: 303665 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 2599D2C007C for ; Fri, 20 Dec 2013 05:41:34 +1100 (EST) Received: from localhost ([::1]:45793 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VtiXL-0003iG-Ac for incoming@patchwork.ozlabs.org; Thu, 19 Dec 2013 13:41:31 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44861) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VtiWp-0003eC-MA for qemu-devel@nongnu.org; Thu, 19 Dec 2013 13:41:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VtiWk-0001CK-Sr for qemu-devel@nongnu.org; Thu, 19 Dec 2013 13:40:59 -0500 Received: from smtp02.citrix.com ([66.165.176.63]:23797) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VtiWk-0001Aq-O1 for qemu-devel@nongnu.org; Thu, 19 Dec 2013 13:40:54 -0500 X-IronPort-AV: E=Sophos;i="4.95,514,1384300800"; d="scan'208";a="84048985" Received: from accessns.citrite.net (HELO FTLPEX01CL03.citrite.net) ([10.9.154.239]) by FTLPIPO02.CITRIX.COM with ESMTP; 19 Dec 2013 18:40:54 +0000 Received: from jbaboval-desktop.citrite.net (10.204.240.225) by FTLPEX01CL03.citrite.net (10.13.107.80) with Microsoft SMTP Server id 14.2.342.4; Thu, 19 Dec 2013 13:40:53 -0500 From: John Baboval To: Date: Thu, 19 Dec 2013 13:40:17 -0500 Message-ID: <3899054e6ca4379a5e9232a27e97a7c58903db55.1387475144.git.john.baboval@citrix.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: References: MIME-Version: 1.0 X-Originating-IP: [10.204.240.225] X-DLP: MIA1 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 66.165.176.63 Cc: "John V. Baboval" Subject: [Qemu-devel] [PATCH 7/7] ui: Add an opaque pointer to the DisplayChangeListener X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org From: "John V. Baboval" The pointer is a place for the UI to hang a structure off of. In the multi-head case, the UI can use this pointer to distinguish which QemuConsole a dpy_* call was made for. Signed-off-by: John V. Baboval --- include/ui/console.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/ui/console.h b/include/ui/console.h index 7efa119..271f577 100644 --- a/include/ui/console.h +++ b/include/ui/console.h @@ -191,6 +191,7 @@ struct DisplayChangeListener { const DisplayChangeListenerOps *ops; DisplayState *ds; QemuConsole *con; + void *ui; QLIST_ENTRY(DisplayChangeListener) next; };