]> sigrok.org Git - libsigrok.git/blobdiff - sigrok.h
MinGW/Windows: Serial port portability fixes.
[libsigrok.git] / sigrok.h
index 59d6b1a3082978d361b7692ba67a892c7cf56f1b..9a22cb0ef15799b82eb6a149e467506de0e5c9d1 100644 (file)
--- a/sigrok.h
+++ b/sigrok.h
@@ -123,15 +123,16 @@ struct datafeed_header {
 
 struct input {
        struct input_format *format;
-       void *param;
-       void *internal;
+       char *param;
+       struct device *vdevice;
 };
 
 struct input_format {
        char *extension;
        char *description;
        int (*format_match) (const char *filename);
-       int (*in_loadfile) (const char *filename);
+       int (*init) (struct input *in);
+       int (*loadfile) (struct input *in, const char *filename);
 };
 
 
@@ -211,13 +212,14 @@ extern GSList *devices;
 
 /* Hardware plugin capabilities */
 enum {
-       HWCAP_DUMMY,            /* Used to terminate lists */
+       HWCAP_DUMMY,             /* Used to terminate lists */
        HWCAP_LOGIC_ANALYZER,
-       HWCAP_SAMPLERATE,       /* Change samplerate */
-       HWCAP_PROBECONFIG,      /* Configure probe mask */
-       HWCAP_CAPTURE_RATIO,    /* Set pre/post-trigger capture ratio */
-       HWCAP_LIMIT_MSEC,       /* Set a time limit for sample acquisition */
-       HWCAP_LIMIT_SAMPLES,    /* Set a limit on number of samples */
+       HWCAP_SAMPLERATE,        /* Change samplerate */
+       HWCAP_PROBECONFIG,       /* Configure probe mask */
+       HWCAP_CAPTURE_RATIO,     /* Set pre/post-trigger capture ratio */
+       HWCAP_LIMIT_MSEC,        /* Set a time limit for sample acquisition */
+       HWCAP_LIMIT_SAMPLES,     /* Set a limit on number of samples */
+       HWCAP_CONTINUOUS,
 };
 
 struct hwcap_option {