|
From: | Anthony Liguori |
Subject: | Re: [Qemu-devel] [PATCH 2/4] uImage: implement gzip support |
Date: | Tue, 18 Nov 2008 16:44:13 -0600 |
User-agent: | Thunderbird 2.0.0.17 (X11/20080925) |
Hollis Blanchard wrote:
Also note that there are multiple implementations of unzip in QEMU right now so you could refactor one of those into common code.Are there? grep didn't find them; can you point me at some?
$ grep inflateInit *.c block-cloop.c: if(inflateInit(&s->zstream) != Z_OK) block-dmg.c: if(inflateInit(&s->zstream) != Z_OK) block-qcow2.c: ret = inflateInit2(strm, -12); block-qcow.c: ret = inflateInit2(strm, -12); vl.c: ret = inflateInit(&s->zstream);The closest to what you're looking for is probably decompress_buffer() in block-qcow2.c
Regards, Anthony Liguori
[Prev in Thread] | Current Thread | [Next in Thread] |