]> sigrok.org Git - libsigrok.git/blobdiff - src/libsigrok-internal.h
serial-dmm: sort the list of device drivers (part 6, fs9922)
[libsigrok.git] / src / libsigrok-internal.h
index 13617054eb1025a966d689d761ababed91febe3d..0856c48013ad95eae0ecc3f6e9b1894a0d26a8c0 100644 (file)
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-/** @file
-  * @internal
-  */
+/**
+ * @file
+ *
+ * @internal
+ */
 
 #ifndef LIBSIGROK_LIBSIGROK_INTERNAL_H
 #define LIBSIGROK_LIBSIGROK_INTERNAL_H
@@ -332,6 +334,8 @@ struct zip_stat;
 #define SR_REGISTER_DEV_DRIVER(name) \
        SR_REGISTER_DEV_DRIVER_LIST(name##_list, &name);
 
+SR_API void sr_drivers_init(struct sr_context *context);
+
 struct sr_context {
        struct sr_dev_driver **driver_list;
 #ifdef HAVE_LIBUSB_1_0
@@ -426,9 +430,9 @@ struct sr_input_module {
         * @retval SR_OK This module knows the format.
         * @retval SR_ERR_NA There wasn't enough data for this module to
         *   positively identify the format.
-        * @retval SR_ERR_DATA This module knows the format, but cannot handle it.
-        *   This means the stream is either corrupt, or indicates a feature
-        *   that the module does not support.
+        * @retval SR_ERR_DATA This module knows the format, but cannot handle
+        *   it. This means the stream is either corrupt, or indicates a
+        *   feature that the module does not support.
         * @retval SR_ERR This module does not know the format.
         */
        int (*format_match) (GHashTable *metadata);
@@ -466,16 +470,16 @@ struct sr_input_module {
         */
        int (*end) (struct sr_input *in);
 
-        /**
-         * Reset the input module's input handling structures.
-         *
-         * Causes the input module to reset its internal state so that we can
-         * re-send the input data from the beginning without having to
-         * re-create the entire input module.
-         *
-         * @retval SR_OK Success.
-         * @retval other Negative error code.
-         */
+       /**
+        * Reset the input module's input handling structures.
+        *
+        * Causes the input module to reset its internal state so that we can
+        * re-send the input data from the beginning without having to
+        * re-create the entire input module.
+        *
+        * @retval SR_OK Success.
+        * @retval other Negative error code.
+        */
        int (*reset) (struct sr_input *in);
 
        /**
@@ -493,7 +497,7 @@ struct sr_input_module {
 
 /** Output module instance. */
 struct sr_output {
-       /** A pointer to this output's module.  */
+       /** A pointer to this output's module. */
        const struct sr_output_module *module;
 
        /**
@@ -610,7 +614,7 @@ struct sr_output_module {
 
 /** Transform module instance. */
 struct sr_transform {
-       /** A pointer to this transform's module.  */
+       /** A pointer to this transform's module. */
        const struct sr_transform_module *module;
 
        /**
@@ -1123,6 +1127,7 @@ struct es519xx_info {
        uint32_t baudrate;
        int packet_size;
        gboolean alt_functions, fivedigits, clampmeter, selectable_lpf;
+       int digits;
 };
 
 SR_PRIV gboolean sr_es519xx_2400_11b_packet_valid(const uint8_t *buf);