From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41833) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VK2zu-0007Gp-1y for qemu-devel@nongnu.org; Thu, 12 Sep 2013 05:15:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VK2zk-0003ib-Ax for qemu-devel@nongnu.org; Thu, 12 Sep 2013 05:15:33 -0400 Received: from e28smtp03.in.ibm.com ([122.248.162.3]:41089) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VK2zj-0003hr-F2 for qemu-devel@nongnu.org; Thu, 12 Sep 2013 05:15:24 -0400 Received: from /spool/local by e28smtp03.in.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 12 Sep 2013 14:37:00 +0530 Received: from d28relay04.in.ibm.com (d28relay04.in.ibm.com [9.184.220.61]) by d28dlp03.in.ibm.com (Postfix) with ESMTP id EBD521258054 for ; Thu, 12 Sep 2013 14:45:20 +0530 (IST) Received: from d28av02.in.ibm.com (d28av02.in.ibm.com [9.184.220.64]) by d28relay04.in.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id r8C9FD4741484482 for ; Thu, 12 Sep 2013 14:45:14 +0530 Received: from d28av02.in.ibm.com (localhost [127.0.0.1]) by d28av02.in.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id r8C9FFpD007558 for ; Thu, 12 Sep 2013 14:45:15 +0530 From: Wenchao Xia Date: Thu, 12 Sep 2013 17:15:04 +0800 Message-Id: <1378977312-17696-1-git-send-email-xiawenc@linux.vnet.ibm.com> Subject: [Qemu-devel] [RFC PATCH 0/8] Remove stub mon-protocol-event for block List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kwolf@redhat.com, pbonzini@redhat.com, anthony@codemonkey.ws, stefanha@redhat.com, Wenchao Xia This series will remove the usage of symbols of mon-protocol-event in qemu-img, qemu-nbd and qemu-io, in short remove the connetion for block layer. Background: I am tring to decouple block layer code with other unnnessary components, and in ./stub there many symbols that qemu-img linked as fake implemtion. As a first step, I am decouple monitor with block layer code, this is the first part of it. There are still other stub symbols for monitor, which will be solved later. It seems error handlering is also link with those symbols, and will adjust that. Wenchao Xia (8): 1 block: use type MonitorEvent directly 2 block: do not include monitor.h in block.c 3 qapi: move MonitorEvent define 4 qapi: rename MonitorEvent to QEvent 5 block: add a callback layer for common functions 6 block: replace monitor_protocol_event() with callback 7 block: do not include monitor.h 7 stubs: remove mon-protocol-event.o in stub obj block.c | 22 ++++++++++++++++++---- block/qcow2-refcount.c | 4 +++- blockjob.c | 10 ++++++++-- include/block/block.h | 12 ++++++++++++ include/block/block_int.h | 3 +-- include/monitor/monitor.h | 40 ++-------------------------------------- include/qapi/qmp/qevent.h | 41 +++++++++++++++++++++++++++++++++++++++++ include/qapi/qmp/types.h | 1 + monitor.c | 12 ++++++------ stubs/Makefile.objs | 1 - stubs/mon-protocol-event.c | 2 +- tests/Makefile | 3 ++- ui/vnc.c | 2 +- vl.c | 4 ++++ 14 files changed, 100 insertions(+), 57 deletions(-) create mode 100644 include/qapi/qmp/qevent.h