genericdmm: better subdriver API arguments

This commit is contained in:
Bert Vermeulen 2012-07-08 04:17:56 +02:00
parent 1ef445b3d6
commit 633b2fac75
1 changed files with 6 additions and 2 deletions

View File

@ -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);
};