From: Bert Vermeulen Date: Sun, 8 Jul 2012 02:17:56 +0000 (+0200) Subject: genericdmm: better subdriver API arguments X-Git-Tag: dsupstream~846 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=633b2fac75c59c550cb1245cb75caa3ceef57b3d;p=libsigrok.git genericdmm: better subdriver API arguments --- diff --git a/hardware/genericdmm/genericdmm.h b/hardware/genericdmm/genericdmm.h index 58d4a906..d9619494 100644 --- a/hardware/genericdmm/genericdmm.h +++ b/hardware/genericdmm/genericdmm.h @@ -71,9 +71,13 @@ struct context { struct dmmchip { /* Optional, called once before measurement starts. */ - int (*init) (struct context *ctx); + int (*init) (void); + + /* Scan for devices with the given options. */ + GSList *(*scan) (GSList *options); + /* Called whenever a chunk of data arrives. */ - int (*data) (struct context *ctx, unsigned char *data); + int (*data) (struct sr_dev_inst *sdi, unsigned char *data); };