]> sigrok.org Git - libsigrok.git/blobdiff - hwdriver.c
Add config keys for setting the number of analog probes.
[libsigrok.git] / hwdriver.c
index a94acc9ec9f89ae79caf73859e6f6a5e9dd6ed6b..b1d94ccd10609090e537e25fd15655fdecc4227d 100644 (file)
 #include "libsigrok.h"
 #include "libsigrok-internal.h"
 
-/* Message logging helpers with subsystem-specific prefix string. */
-#define LOG_PREFIX "hwdriver: "
-#define sr_log(l, s, args...) sr_log(l, LOG_PREFIX s, ## args)
-#define sr_spew(s, args...) sr_spew(LOG_PREFIX s, ## args)
-#define sr_dbg(s, args...) sr_dbg(LOG_PREFIX s, ## args)
-#define sr_info(s, args...) sr_info(LOG_PREFIX s, ## args)
-#define sr_warn(s, args...) sr_warn(LOG_PREFIX s, ## args)
-#define sr_err(s, args...) sr_err(LOG_PREFIX s, ## args)
+#define LOG_PREFIX "hwdriver"
 
 /**
  * @file
@@ -103,6 +96,10 @@ static struct sr_config_info sr_config_info_data[] = {
                "Power off", NULL},
        {SR_CONF_DATA_SOURCE, SR_T_CHAR, "data_source",
                "Data source", NULL},
+       {SR_CONF_NUM_LOGIC_PROBES, SR_T_INT32, "logic_probes",
+               "Number of logic probes", NULL},
+       {SR_CONF_NUM_ANALOG_PROBES, SR_T_INT32, "analog_probes",
+               "Number of analog probes", NULL},
        {0, 0, NULL, NULL, NULL},
 };