From patchwork Wed Oct 31 17:45:18 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [3/5] qemu-ga: win32: GAChannel: store GAChannelMethod being used Date: Wed, 31 Oct 2012 07:45:18 -0000 From: Luiz Capitulino X-Patchwork-Id: 195964 Message-Id: <1351705520-24589-4-git-send-email-lcapitulino@redhat.com> To: qemu-devel@nongnu.org Cc: mdroth@linux.vnet.ibm.com 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;