]> sigrok.org Git - libsigrok.git/blobdiff - include/libsigrok/libsigrok.h
input: s/format/module in all naming.
[libsigrok.git] / include / libsigrok / libsigrok.h
index 8292483a67f1e45bf62a22e0dff2cc5f8c16cc06..1a076d6aad46cd5aa516e29e297fa50b5c9cd242 100644 (file)
@@ -443,13 +443,13 @@ struct sr_option {
        GSList *values;
 };
 
-/** Input (file) format struct. */
+/** Input (file) module struct. */
 struct sr_input {
        /**
-        * A pointer to this input format's 'struct sr_input_format'.
+        * A pointer to this input module's 'struct sr_input_module'.
         * The frontend can use this to call the module's callbacks.
         */
-       struct sr_input_format *format;
+       struct sr_input_module *module;
 
        GHashTable *param;
 
@@ -458,13 +458,13 @@ struct sr_input {
        void *internal;
 };
 
-/** Input (file) format driver. */
-struct sr_input_format {
-       /** The unique ID for this input format. Must not be NULL. */
+/** Input (file) module driver. */
+struct sr_input_module {
+       /** The unique ID for this input module. Must not be NULL. */
        char *id;
 
        /**
-        * A short description of the input format, which can (for example)
+        * A short description of the input module, which can (for example)
         * be displayed to the user by frontends. Must not be NULL.
         */
        char *description;
@@ -756,6 +756,9 @@ enum sr_configkey {
        /** Choice of clock edge for external clock ("r" or "f"). */
        SR_CONF_CLOCK_EDGE,
 
+       /** Amplitude of a source without strictly-defined MQ. */
+       SR_CONF_AMPLITUDE,
+
        /*--- Special stuff -------------------------------------------------*/
 
        /** Scan options supported by the driver. */