From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:43274) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ULBAC-00069J-LS for qemu-devel@nongnu.org; Thu, 28 Mar 2013 07:38:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ULBA8-00062P-AZ for qemu-devel@nongnu.org; Thu, 28 Mar 2013 07:38:36 -0400 Received: from e39.co.us.ibm.com ([32.97.110.160]:40240) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ULBA8-000626-53 for qemu-devel@nongnu.org; Thu, 28 Mar 2013 07:38:32 -0400 Received: from /spool/local by e39.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 28 Mar 2013 05:38:30 -0600 Received: from d03relay04.boulder.ibm.com (d03relay04.boulder.ibm.com [9.17.195.106]) by d03dlp01.boulder.ibm.com (Postfix) with ESMTP id 797E81FF0026 for ; Thu, 28 Mar 2013 05:33:31 -0600 (MDT) Received: from d03av03.boulder.ibm.com (d03av03.boulder.ibm.com [9.17.195.169]) by d03relay04.boulder.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id r2SBcS1x358070 for ; Thu, 28 Mar 2013 05:38:28 -0600 Received: from d03av03.boulder.ibm.com (loopback [127.0.0.1]) by d03av03.boulder.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id r2SBcS3J023067 for ; Thu, 28 Mar 2013 05:38:28 -0600 From: Stefan Berger Date: Thu, 28 Mar 2013 07:38:11 -0400 Message-Id: <1364470699-16223-1-git-send-email-stefanb@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH v5 0/8] Implement and test ASN.1 BER visitors List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: stefanb@linux.vnet.ibm.com, qemu-devel@nongnu.org, anthony@codemonkey.ws Cc: jschopp@linux.vnet.ibm.com, coreyb@linux.vnet.ibm.com, mdroth@linux.vnet.ibm.com, mst@redhat.com This patch series implements ASN.1 BER visitors for encoding and decoding of data into byte streams. This is the last post of this series with some issues fixed, the visitor_optional implemented and all possible tests in test-visitor-serialization passing. Stefan Stefan Berger (8): Move some contents of savevm.c to qemu-file.c 3 new file wrappers QEMUSizedBuffer QAPI: add type_sized_buffer ASN.1 output visitor ASN.1 input visitor Extend test-visitor-serialization with ASN.1 visitor(s) ASN.1 specific test cases configure | 2 +- include/migration/qemu-file.h | 22 + include/qapi/ber-input-visitor.h | 30 + include/qapi/ber-output-visitor.h | 32 + include/qapi/ber.h | 113 ++++ include/qapi/visitor-impl.h | 3 + include/qapi/visitor.h | 3 + include/qemu-common.h | 14 + qapi/Makefile.objs | 1 + qapi/ber-common.c | 86 +++ qapi/ber-common.h | 29 + qapi/ber-input-visitor.c | 1153 ++++++++++++++++++++++++++++++++++ qapi/ber-output-visitor.c | 705 +++++++++++++++++++++ qapi/qapi-visit-core.c | 8 + savevm.c | 690 -------------------- tests/Makefile | 15 +- tests/test-ber-visitor.c | 894 ++++++++++++++++++++++++++ tests/test-visitor-serialization.c | 78 +++ util/Makefile.objs | 1 + util/qemu-file.c | 1214 ++++++++++++++++++++++++++++++++++++ 20 files changed, 4401 insertions(+), 692 deletions(-) create mode 100644 include/qapi/ber-input-visitor.h create mode 100644 include/qapi/ber-output-visitor.h create mode 100644 include/qapi/ber.h create mode 100644 qapi/ber-common.c create mode 100644 qapi/ber-common.h create mode 100644 qapi/ber-input-visitor.c create mode 100644 qapi/ber-output-visitor.c create mode 100644 tests/test-ber-visitor.c create mode 100644 util/qemu-file.c -- 1.7.11.7