Restructure XCF-reading code for external usability (e.g. libxcf)
The file app/pdb/fileops-cmds.c
has the code that reads XCF files. The code as currently written knows a lot about GIMP, which means the code cannot be reused elsewhere.
If it were restructured to be called from "outside", then other programs that wanted to parse XCF files could just link to and call it. The structure might need a callback (thanks for idea "ankh") so it can scale for very large files.
What do people think?