From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33860) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X1PZC-0004ob-Or for qemu-devel@nongnu.org; Sun, 29 Jun 2014 20:35:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X1PZ6-0002cd-4g for qemu-devel@nongnu.org; Sun, 29 Jun 2014 20:35:30 -0400 Received: from teal.mankin.org.uk ([82.69.186.50]:60048 helo=teal.anarres.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X1PZ5-0002bX-Rp for qemu-devel@nongnu.org; Sun, 29 Jun 2014 20:35:24 -0400 Received: from localhost ([127.0.0.1]) by teal.anarres.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1X1Pe5-0000OB-Vs for qemu-devel@nongnu.org; Mon, 30 Jun 2014 01:40:34 +0100 Message-ID: <53B0B0C3.4010203@anarres.org> Date: Sun, 29 Jun 2014 17:35:15 -0700 From: Shevek MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] QApi: Java interface List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Hi, I have written a Java code generator to allow a Java control process to interface with the QApi subsystem. The code is autogenerated from the JSON schema, and imposes as much strict typing as is possible. It can easily be regenerated from any branch or directory if you want to test against a development version of QApi. The code is available here: https://github.com/shevek/qemu-qapi-java I would be interested in offering this to the community, and in hearing any feedback. Feedback to QApi developers: The QApi specification uses a lot of oddities, including "**" as a type, various odd things like "number" (I forget offhand), and using Java/C reserved words as key names, which make it a little harder to do an elegant code generation job from the QApi schema. However, inelegance permitted, here it is. Thank you. S.