Bug 640 - Add a generic SR_DF_ANALOG2 converter
Summary: Add a generic SR_DF_ANALOG2 converter
Status: RESOLVED FIXED
Alias: None
Product: libsigrok
Classification: Unclassified
Component: Other (show other bugs)
Version: unreleased development snapshot
Hardware: All All
: Normal normal
Target Milestone: libsigrok 0.4.0
Assignee: Nobody
URL:
Keywords:
: 17 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-08-30 20:02 CEST by Uwe Hermann
Modified: 2016-01-03 23:36 CET (History)
2 users (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Uwe Hermann 2015-08-30 20:02:22 CEST
Step one should be to rename SR_DF_ANALOG to SR_DF_ANALOG_OLD in all drivers and rename the new/official SR_DF_ANALOG2 to SR_DF_ANALOG (which should be the only frontend-visible name).

Then, add a converter that takes any SR_DF_ANALOG_OLD from drivers and autoconverts it to SR_DF_ANALOG.

Then, existing frontends should be converted to (only) support the new SR_DF_ANALOG format.

Over time, all drivers should be converted to not output SR_DF_ANALOG_OLD anymore, but rather SR_DF_ANALOG (properly, i.e. by actually using the advantages of the new format).

When all drivers are converted, the simple converter function in the backend will be dropped.
Comment 1 Uwe Hermann 2015-12-28 13:27:09 CET
*** Bug 17 has been marked as a duplicate of this bug. ***
Comment 2 Martin Ling 2016-01-03 23:36:05 CET
This was done in ca79993bba12e8cb48c4327e92b9c296c10a9866.