From patchwork Wed Oct 31 17:45:18 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luiz Capitulino X-Patchwork-Id: 195964 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 78C092C00AA for ; Thu, 1 Nov 2012 04:45:06 +1100 (EST) Received: from localhost ([::1]:53364 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TTcLg-0007DG-J5 for incoming@patchwork.ozlabs.org; Wed, 31 Oct 2012 13:45:04 -0400 Received: from eggs.gnu.org ([208.118.235.92]:36759) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TTcLa-0007Ca-0i for qemu-devel@nongnu.org; Wed, 31 Oct 2012 13:44:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TTcLU-0005qz-Bf for qemu-devel@nongnu.org; Wed, 31 Oct 2012 13:44:57 -0400 Received: from mx1.redhat.com ([209.132.183.28]:19086) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TTcLU-0005oV-34 for qemu-devel@nongnu.org; Wed, 31 Oct 2012 13:44:52 -0400 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q9VHiUEb031639 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 31 Oct 2012 13:44:35 -0400 Received: from localhost (ovpn-113-84.phx2.redhat.com [10.3.113.84]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q9VHiTp3026314; Wed, 31 Oct 2012 13:44:29 -0400 From: Luiz Capitulino To: qemu-devel@nongnu.org Date: Wed, 31 Oct 2012 15:45:18 -0200 Message-Id: <1351705520-24589-4-git-send-email-lcapitulino@redhat.com> In-Reply-To: <1351705520-24589-1-git-send-email-lcapitulino@redhat.com> References: <1351705520-24589-1-git-send-email-lcapitulino@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.24 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.132.183.28 Cc: mdroth@linux.vnet.ibm.com Subject: [Qemu-devel] [PATCH 3/5] qemu-ga: win32: GAChannel: store GAChannelMethod being used 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 Next commit wants this. Signed-off-by: Luiz Capitulino --- qga/channel-win32.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qga/channel-win32.c b/qga/channel-win32.c index c0e19a8..8e259c3 100644 --- a/qga/channel-win32.c +++ b/qga/channel-win32.c @@ -25,6 +25,7 @@ struct GAChannel { GAChannelReadState rstate; GIOCondition pending_events; /* TODO: use GAWatch.pollfd.revents */ GSource *source; + GAChannelMethod method; }; typedef struct GAWatch { @@ -317,6 +318,7 @@ GAChannel *ga_channel_new(GAChannelMethod method, const gchar *path, c->cb = cb; c->user_data = opaque; + c->method = method; sec_attrs.nLength = sizeof(SECURITY_ATTRIBUTES); sec_attrs.lpSecurityDescriptor = NULL;