qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH V8 02/20] build: add block/qapi.c


From: Wenchao Xia
Subject: [Qemu-devel] [PATCH V8 02/20] build: add block/qapi.c
Date: Thu, 7 Mar 2013 14:07:07 +0800

  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 <address@hidden>
---
 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   <address@hidden>
+ *
+ * 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
-- 
1.7.1





reply via email to

[Prev in Thread] Current Thread [Next in Thread]