Hi guys, The use of FILE* within NetSurf is increasing. In particular wrt. things like the libcss branch's use of FILE* to allow debugging by dumping computed styles etc.
I'm beginning to think we need an abstract IO library so that when we come to integrate javascript or similar, or want to write the equivalent of a DOM inspector or firebug for NetSurf, we'll want to dump computed styles to in-memory strings, etc. I have the beginnings of an idea for this, but I wanted to run the basic concept past -dev before I invested too much time into it. The idea is to make it so that rather than FILE* you would use a ns_aio stream which will be exposed with methods like ns_aio_printf, ns_aio_read, ns_aio_write, etc, but may be backed onto a file on disk, a set of routines which read out of a cache, some memory block for later re-use, etc. This is only required because it's not portable to proddle around inside FILE* to redirect IO :-( D.
