Re: GConverter commited
- From: Shaun McCance <shaunm gnome org>
- To: Bastien Nocera <hadess hadess net>
- Cc: gtk-devel-list gnome org
- Subject: Re: GConverter commited
- Date: Tue, 24 Nov 2009 14:25:09 -0600
On Tue, 2009-11-24 at 16:22 +0000, Bastien Nocera wrote:
> On Tue, 2009-11-24 at 10:09 -0600, Shaun McCance wrote:
> <snip>
> > I don't disagree.  Is there a place to plop this code
> > for people to pick it up?  I'll be putting at least the
> > bz2 and lzma converters into Yelp soon (or possibly an
> > xv converter instead of the lzmadec-based one).  I'm
> > still undecided on the magic converter.
> 
> I've written some code for gdk-pixbuf's XCF loader to use GConverter to
> uncompress gz files, and would be happy to clean up the code to use the
> same codepath for bz2.
> 
> So I'd be happy to see your code.
Code is here:
http://www.gnome.org/~shaunm/git/convert.git
The bz2 converter was pretty trivial to write.  The one
possible hiccup is the implementation of reset.  Since
libbz2 doesn't provide a reset function, I just ended
and reinitialized the stream.  But I didn't actually
test it.  GConverterInputStream doesn't actually call
reset.
--
Shaun
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]