-extern struct sr_global *global;
-
-GSList *devices = NULL;
-
-void sr_device_scan(void)
-{
- GSList *plugins, *l;
- struct sr_device_plugin *plugin;
-
- plugins = list_hwplugins();
-
- /*
- * Initialize all plugins first. Since the init() call may involve
- * a firmware upload and associated delay, we may as well get all
- * of these out of the way first.
- */
- for (l = plugins; l; l = l->next) {
- plugin = l->data;
- sr_device_plugin_init(plugin);
- }
-
-}
-
-int sr_device_plugin_init(struct sr_device_plugin *plugin)
+/**
+ * Set the name of the specified probe in the specified device.
+ *
+ * If the probe already has a different name assigned to it, it will be
+ * removed, and the new name will be saved instead.
+ *
+ * @param dev TODO
+ * @param probenum The number of the probe whose name to set.
+ * Note that the probe numbers start at 1 (not 0!).
+ * @param name The new name that the specified probe should get.
+ *
+ * @return SR_OK upon success, SR_ERR_ARG upon invalid arguments, or SR_ERR
+ * upon other errors.
+ * If something other than SR_OK is returned, 'dev' is unchanged.
+ */
+SR_API int sr_dev_probe_name_set(struct sr_dev *dev, int probenum,
+ const char *name)