Bug 113

Summary: Driver scan() should be able to return an error code
Product: libsigrok Reporter: Bert Vermeulen <bert>
Component: APIAssignee: Nobody <nobody>
Status: CONFIRMED ---    
Severity: normal    
Priority: Normal    
Version: unreleased development snapshot   
Target Milestone: ---   
Hardware: All   
OS: All   

Description Bert Vermeulen 2013-04-29 12:16:28 CEST
The prototype for scan() should be:

int (*scan) (GSList *options, GSList **devices);

This will enable us to not only bring the function in line with the rest of libsigrok wrt error reporting, but also allow us to return a (new) error code: SR_ERR_CONN_REQUIRED. We need this because drivers like the OLS don't do any scanning unless fed a serial port, but have no way to signal this to the frontend.