On Dienstag, 24. Februar 2009, Mark Wallis wrote: > The switch() in report-save.c:file_save_ok_callback does seem a little > confusing to me in the way that each report type is generated slightly > differently. For example, the HTML and latex types both use the > backend_convert function and then pass the returned arglist through > another function which does the formatting. The XML_NG clause though > uses a specialised backend_to_xml_ng function, and the PDF clause uses > a completely different method all together. > > Perhaps there is a way that we can clean this area of code up to allow > us to easily add new report types down the track ?
we inherited this "programming style & design" from Nessus. Cleaning up, improving, generalizing are all very welcome activities :-) Best Jan -- Dr. Jan-Oliver Wagner | ++49-541-335083-0 | http://www.intevation.de/ Intevation GmbH, Neuer Graben 17, 49074 Osnabrück | AG Osnabrück, HR B 18998 Geschäftsführer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner _______________________________________________ Openvas-devel mailing list Openvas-devel@wald.intevation.org http://lists.wald.intevation.org/mailman/listinfo/openvas-devel