From patchwork Thu Mar 7 06:07:07 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wayne Xia X-Patchwork-Id: 225729 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 E3F492C0385 for ; Thu, 7 Mar 2013 17:10:16 +1100 (EST) Received: from localhost ([::1]:38000 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UDU1u-0006tE-J7 for incoming@patchwork.ozlabs.org; Thu, 07 Mar 2013 01:10:14 -0500 Received: from eggs.gnu.org ([208.118.235.92]:50969) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UDU1R-0006t2-0s for qemu-devel@nongnu.org; Thu, 07 Mar 2013 01:09:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UDU1M-0003vX-20 for qemu-devel@nongnu.org; Thu, 07 Mar 2013 01:09:44 -0500 Received: from e28smtp02.in.ibm.com ([122.248.162.2]:47612) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UDU1L-0003vJ-DL for qemu-devel@nongnu.org; Thu, 07 Mar 2013 01:09:39 -0500 Received: from /spool/local by e28smtp02.in.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 7 Mar 2013 11:35:54 +0530 Received: from d28dlp01.in.ibm.com (9.184.220.126) by e28smtp02.in.ibm.com (192.168.1.132) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Thu, 7 Mar 2013 11:35:52 +0530 Received: from d28relay02.in.ibm.com (d28relay02.in.ibm.com [9.184.220.59]) by d28dlp01.in.ibm.com (Postfix) with ESMTP id 36A17E0050 for ; Thu, 7 Mar 2013 11:40:49 +0530 (IST) Received: from d28av03.in.ibm.com (d28av03.in.ibm.com [9.184.220.65]) by d28relay02.in.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id r2769Was17170550 for ; Thu, 7 Mar 2013 11:39:32 +0530 Received: from d28av03.in.ibm.com (loopback [127.0.0.1]) by d28av03.in.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id r2769YWd028812 for ; Thu, 7 Mar 2013 17:09:34 +1100 Received: from RH63Wenchao (wenchaox.cn.ibm.com [9.115.122.208]) by d28av03.in.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id r2767TJh021188; Thu, 7 Mar 2013 17:09:31 +1100 From: Wenchao Xia To: qemu-devel@nongnu.org Date: Thu, 7 Mar 2013 14:07:07 +0800 Message-Id: <1362636445-7188-3-git-send-email-xiawenc@linux.vnet.ibm.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1362636445-7188-1-git-send-email-xiawenc@linux.vnet.ibm.com> References: <1362636445-7188-1-git-send-email-xiawenc@linux.vnet.ibm.com> X-TM-AS-MML: No X-Content-Scanned: Fidelis XPS MAILER x-cbid: 13030706-5816-0000-0000-000006F9304E X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 122.248.162.2 Cc: kwolf@redhat.com, aliguori@us.ibm.com, capitulino@redhat.com, stefanha@gmail.com, armbru@redhat.com, pbonzini@redhat.com, Wenchao Xia Subject: [Qemu-devel] [PATCH V8 02/20] build: add block/qapi.c 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 This file will have qmp related functions for block. To avoid conflict and tip better, macro in header file is BLOCK_QAPI_H instead of QAPI_H. Signed-off-by: Wenchao Xia --- block/Makefile.objs | 2 +- block/qapi.c | 14 ++++++++++++++ include/block/qapi.h | 4 ++++ 3 files changed, 19 insertions(+), 1 deletions(-) create mode 100644 block/qapi.c create mode 100644 include/block/qapi.h diff --git a/block/Makefile.objs b/block/Makefile.objs index 60a4cd2..fc27bed 100644 --- a/block/Makefile.objs +++ b/block/Makefile.objs @@ -3,7 +3,7 @@ block-obj-y += qcow2.o qcow2-refcount.o qcow2-cluster.o qcow2-snapshot.o qcow2-c block-obj-y += qed.o qed-gencb.o qed-l2-cache.o qed-table.o qed-cluster.o block-obj-y += qed-check.o block-obj-y += parallels.o blkdebug.o blkverify.o -block-obj-y += snapshot.o +block-obj-y += snapshot.o qapi.o block-obj-$(CONFIG_WIN32) += raw-win32.o win32-aio.o block-obj-$(CONFIG_POSIX) += raw-posix.o block-obj-$(CONFIG_LINUX_AIO) += linux-aio.o diff --git a/block/qapi.c b/block/qapi.c new file mode 100644 index 0000000..3ac3590 --- /dev/null +++ b/block/qapi.c @@ -0,0 +1,14 @@ +/* + * Block layer qmp related functions + * + * Copyright IBM, Corp. 2013 + * + * Authors: + * Wenchao Xia + * + * This work is licensed under the terms of the GNU LGPL, version 2 or later. + * See the COPYING.LIB file in the top-level directory. + * + */ + +#include "block/qapi.h" diff --git a/include/block/qapi.h b/include/block/qapi.h new file mode 100644 index 0000000..e1c0967 --- /dev/null +++ b/include/block/qapi.h @@ -0,0 +1,4 @@ +#ifndef BLOCK_QAPI_H +#define BLOCK_QAPI_H + +#endif