From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:34333) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1THA4m-0006x3-Dj for qemu-devel@nongnu.org; Thu, 27 Sep 2012 05:08:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1THA4d-0005LK-03 for qemu-devel@nongnu.org; Thu, 27 Sep 2012 05:08:08 -0400 Received: from mx1.redhat.com ([209.132.183.28]:42766) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1THA4c-0005LD-OH for qemu-devel@nongnu.org; Thu, 27 Sep 2012 05:07:58 -0400 Message-ID: <50641765.1030109@redhat.com> Date: Thu, 27 Sep 2012 11:07:49 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1475119461.458336.1348485090253.JavaMail.root@redhat.com> <50641661.9080701@redhat.com> In-Reply-To: <50641661.9080701@redhat.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v9 2/4] qemu: URI parsing library List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Avi Kivity Cc: Kevin Wolf , Anthony Liguori , Anand Avati , Vijay Bellur , Stefan Hajnoczi , Harsh Bora , Amar Tumballi , "Richard W.M. Jones" , qemu-devel@nongnu.org, Blue Swirl , Bharata B Rao , Daniel Veillard Il 27/09/2012 11:03, Avi Kivity ha scritto: > On 09/24/2012 01:11 PM, Paolo Bonzini wrote: > > A better plan would be to incorporate this code into glib, completing > > the extremely sparse URI support that is already there. However, we > > would not be able to use it anyway, because we support compiling on old > > glib versions. > > If the same (or very similar) API is retained, Yes, there is exactly one change in the API (modulo renaming) so we could just use some #defines or wrappers. > we could fall back on > libxml2 when glib uri parsing is unavailable. That's an interesting idea. The assumption that glib wants URI parsing is not proved, but it may work out. Paolo > Eventually we bump our > minimum version requirement and drop the libxml2 dependency (or find out > that xml has invaded our code base and we can't get rid of it).