Add a field for the full name of a device.
Also, show this long/full name in 'sigrok-cli -V'.
This commit is contained in:
parent
b9c735a275
commit
9f8274a544
|
@ -357,6 +357,7 @@ static void hw_stop_acquisition(int device_index, gpointer session_device_id)
|
||||||
|
|
||||||
struct device_plugin alsa_plugin_info = {
|
struct device_plugin alsa_plugin_info = {
|
||||||
"alsa",
|
"alsa",
|
||||||
|
"ALSA driver",
|
||||||
1,
|
1,
|
||||||
hw_init,
|
hw_init,
|
||||||
hw_cleanup,
|
hw_cleanup,
|
||||||
|
|
|
@ -1351,6 +1351,7 @@ static void hw_stop_acquisition(int device_index, gpointer session_device_id)
|
||||||
|
|
||||||
struct device_plugin asix_sigma_plugin_info = {
|
struct device_plugin asix_sigma_plugin_info = {
|
||||||
"asix-sigma",
|
"asix-sigma",
|
||||||
|
"ASIX SIGMA",
|
||||||
1,
|
1,
|
||||||
hw_init,
|
hw_init,
|
||||||
hw_cleanup,
|
hw_cleanup,
|
||||||
|
|
|
@ -61,6 +61,7 @@ static void hw_stop_acquisition(int device_index, gpointer session_device_id)
|
||||||
|
|
||||||
struct device_plugin skeleton_plugin_info = {
|
struct device_plugin skeleton_plugin_info = {
|
||||||
"skeleton",
|
"skeleton",
|
||||||
|
"Skeleton driver",
|
||||||
1,
|
1,
|
||||||
hw_init,
|
hw_init,
|
||||||
hw_cleanup,
|
hw_cleanup,
|
||||||
|
|
|
@ -392,6 +392,7 @@ static void hw_stop_acquisition(int device_index, gpointer session_device_id)
|
||||||
|
|
||||||
struct device_plugin demo_plugin_info = {
|
struct device_plugin demo_plugin_info = {
|
||||||
"demo",
|
"demo",
|
||||||
|
"Demo driver and pattern generator",
|
||||||
1,
|
1,
|
||||||
hw_init,
|
hw_init,
|
||||||
hw_cleanup,
|
hw_cleanup,
|
||||||
|
|
|
@ -752,10 +752,10 @@ static void hw_stop_acquisition(int device_index, gpointer session_device_id)
|
||||||
|
|
||||||
struct device_plugin link_mso19_plugin_info = {
|
struct device_plugin link_mso19_plugin_info = {
|
||||||
.name = "link-mso19",
|
.name = "link-mso19",
|
||||||
|
.longname = "Link Instruments MSO-19",
|
||||||
.api_version = 1,
|
.api_version = 1,
|
||||||
.init = hw_init,
|
.init = hw_init,
|
||||||
.cleanup = hw_cleanup,
|
.cleanup = hw_cleanup,
|
||||||
|
|
||||||
.open = hw_opendev,
|
.open = hw_opendev,
|
||||||
.close = hw_closedev,
|
.close = hw_closedev,
|
||||||
.get_device_info = hw_get_device_info,
|
.get_device_info = hw_get_device_info,
|
||||||
|
|
|
@ -791,6 +791,7 @@ static void hw_stop_acquisition(int device_index, gpointer session_device_id)
|
||||||
|
|
||||||
struct device_plugin ols_plugin_info = {
|
struct device_plugin ols_plugin_info = {
|
||||||
"ols",
|
"ols",
|
||||||
|
"Openbench Logic Sniffer",
|
||||||
1,
|
1,
|
||||||
hw_init,
|
hw_init,
|
||||||
hw_cleanup,
|
hw_cleanup,
|
||||||
|
|
|
@ -742,10 +742,10 @@ static void hw_stop_acquisition(int device_index, gpointer session_device_id)
|
||||||
|
|
||||||
struct device_plugin saleae_logic_plugin_info = {
|
struct device_plugin saleae_logic_plugin_info = {
|
||||||
"saleae-logic",
|
"saleae-logic",
|
||||||
|
"Saleae Logic",
|
||||||
1,
|
1,
|
||||||
hw_init,
|
hw_init,
|
||||||
hw_cleanup,
|
hw_cleanup,
|
||||||
|
|
||||||
hw_opendev,
|
hw_opendev,
|
||||||
hw_closedev,
|
hw_closedev,
|
||||||
hw_get_device_info,
|
hw_get_device_info,
|
||||||
|
|
|
@ -562,6 +562,7 @@ static void hw_stop_acquisition(int device_index, gpointer session_device_id)
|
||||||
|
|
||||||
struct device_plugin zeroplus_logic_cube_plugin_info = {
|
struct device_plugin zeroplus_logic_cube_plugin_info = {
|
||||||
"zeroplus-logic-cube",
|
"zeroplus-logic-cube",
|
||||||
|
"Zeroplus Logic Cube LAP-C series",
|
||||||
1,
|
1,
|
||||||
hw_init,
|
hw_init,
|
||||||
hw_cleanup,
|
hw_cleanup,
|
||||||
|
|
1
sigrok.h
1
sigrok.h
|
@ -315,6 +315,7 @@ struct samplerates {
|
||||||
struct device_plugin {
|
struct device_plugin {
|
||||||
/* Plugin-specific */
|
/* Plugin-specific */
|
||||||
char *name;
|
char *name;
|
||||||
|
char *longname;
|
||||||
int api_version;
|
int api_version;
|
||||||
int (*init) (char *deviceinfo);
|
int (*init) (char *deviceinfo);
|
||||||
void (*cleanup) (void);
|
void (*cleanup) (void);
|
||||||
|
|
Loading…
Reference in New Issue