I've put some still very rough generated documentation on my web page http://britseyeview.com/software/mysqld.html
There is probably some MySQL specific stuff still in there, but I think this is close to being an interface that could be implemented for other database C api's, and for ODBC. I'd appreciate some quick comments to find out if I am way off the mark, or if it is worth pursuing. Thanks Steve