LibreCAD/LibreCAD — pull request #306 by rvt (2012-03-04 22:07:34+00:00)
Title: Dongxu 

This patch will prevent the filter to be re-used.

The way a filter can decide if it supports a format by inspecting the file is changed and moved into the filter, but need to be filled in at some point so a filter will inspect a file rather decide on the type/extenion. I think we should even at some point remove the complete type based in the canImport/canExport functions..... Essentially we need to get rid of detectFormat in rs_fileio also, it doesn't belong there and let each filter decide if it can handle the type and version. Should we do this right away?

It also prevents adding filters to the heap when they are not needed in main, only a pointer to a filter function is added, this function will just create a new filter object, that's all.

Dongxu, please check if may way of using function pointers is correct..