saleae/SaleaeSocketApi

Export-type not selectable with SocketAPI's "export_analyzer" method

TheOnlyStenberg opened this issue · 0 comments

Hello,

I have a problem with the export_analyzer method, it seems to only export one type of file via the Analyzer's GenerateExportFile method, namely the one corresponding to export_type_user_id = 0. I have an analyzer that can create different types of files, i.e. CSV for human readable debugging, and binary for diskspace/speed:
untitled

Maybe the export_analyzer SocketAPI call could try to match the file extension given as 2'nd argument against the AddExportExtension() types that the Analyzer has specified (and select matching export_type_user_id) - or maybe a 3'rd argument could be added for explicitly setting the export_type_user_id to use during export.

Best regards

Edit: Corrected index of file-name argument in export_analyzer