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:
Uwe Hermann 2011-01-29 17:10:24 +01:00
parent b9c735a275
commit 9f8274a544
9 changed files with 9 additions and 2 deletions

View File

@ -357,6 +357,7 @@ static void hw_stop_acquisition(int device_index, gpointer session_device_id)
struct device_plugin alsa_plugin_info = {
"alsa",
"ALSA driver",
1,
hw_init,
hw_cleanup,

View File

@ -1351,6 +1351,7 @@ static void hw_stop_acquisition(int device_index, gpointer session_device_id)
struct device_plugin asix_sigma_plugin_info = {
"asix-sigma",
"ASIX SIGMA",
1,
hw_init,
hw_cleanup,

View File

@ -61,6 +61,7 @@ static void hw_stop_acquisition(int device_index, gpointer session_device_id)
struct device_plugin skeleton_plugin_info = {
"skeleton",
"Skeleton driver",
1,
hw_init,
hw_cleanup,

View File

@ -392,6 +392,7 @@ static void hw_stop_acquisition(int device_index, gpointer session_device_id)
struct device_plugin demo_plugin_info = {
"demo",
"Demo driver and pattern generator",
1,
hw_init,
hw_cleanup,

View File

@ -752,10 +752,10 @@ static void hw_stop_acquisition(int device_index, gpointer session_device_id)
struct device_plugin link_mso19_plugin_info = {
.name = "link-mso19",
.longname = "Link Instruments MSO-19",
.api_version = 1,
.init = hw_init,
.cleanup = hw_cleanup,
.open = hw_opendev,
.close = hw_closedev,
.get_device_info = hw_get_device_info,

View File

@ -791,6 +791,7 @@ static void hw_stop_acquisition(int device_index, gpointer session_device_id)
struct device_plugin ols_plugin_info = {
"ols",
"Openbench Logic Sniffer",
1,
hw_init,
hw_cleanup,

View File

@ -742,10 +742,10 @@ static void hw_stop_acquisition(int device_index, gpointer session_device_id)
struct device_plugin saleae_logic_plugin_info = {
"saleae-logic",
"Saleae Logic",
1,
hw_init,
hw_cleanup,
hw_opendev,
hw_closedev,
hw_get_device_info,

View File

@ -562,6 +562,7 @@ static void hw_stop_acquisition(int device_index, gpointer session_device_id)
struct device_plugin zeroplus_logic_cube_plugin_info = {
"zeroplus-logic-cube",
"Zeroplus Logic Cube LAP-C series",
1,
hw_init,
hw_cleanup,

View File

@ -315,6 +315,7 @@ struct samplerates {
struct device_plugin {
/* Plugin-specific */
char *name;
char *longname;
int api_version;
int (*init) (char *deviceinfo);
void (*cleanup) (void);