* load 'dummy' backend\n* added proper support for RIG_TYPE_OTHER rigs

git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@388 7ae35d74-ebe9-4afe-98af-79ac388436b8
Hamlib-1.1.1
Stéphane Fillod, F8CFE 2001-02-14 01:12:59 +00:00
rodzic 8aa7914570
commit 8fa6997684
2 zmienionych plików z 10 dodań i 2 usunięć

Wyświetl plik

@ -3,7 +3,7 @@
* This programs list all the available the rig capabilities.
*
*
* $Id: listrigs.c,v 1.5 2001-02-11 23:20:33 f4cfe Exp $
* $Id: listrigs.c,v 1.6 2001-02-14 01:12:59 f4cfe Exp $
*
*
* This program is free software; you can redistribute it and/or
@ -80,6 +80,9 @@ int print_caps_sum(const struct rig_caps *caps, void *data)
case RIG_TYPE_COMPUTER:
printf("Computer\n");
break;
case RIG_TYPE_OTHER:
printf("Other\n");
break;
default:
printf("Unknown\n");
}
@ -117,6 +120,7 @@ int main (int argc, char *argv[])
exit(3);
}
rig_load_backend("winradio"); /* may not be compiled .. */
rig_load_backend("dummy");
printf("Rig#\tMfg\tModel \tVers.\tStatus\tType\n");
status = rig_list_foreach(print_caps_sum,NULL);

Wyświetl plik

@ -4,7 +4,7 @@
* The code is rather ugly since this is only a try out.
*
*
* $Id: rigmatrix.c,v 1.6 2001-02-11 23:23:17 f4cfe Exp $
* $Id: rigmatrix.c,v 1.7 2001-02-14 01:12:59 f4cfe Exp $
*
*
* This program is free software; you can redistribute it and/or
@ -90,6 +90,9 @@ int print_caps_sum(const struct rig_caps *caps, void *data)
case RIG_TYPE_COMPUTER:
printf("Computer");
break;
case RIG_TYPE_OTHER:
printf("Other");
break;
default:
printf("Unknown");
}
@ -487,6 +490,7 @@ int main (int argc, char *argv[])
exit(3);
}
rig_load_backend("winradio"); /* may not be compiled ... */
rig_load_backend("dummy");
printf("<TABLE BORDER=1>");
printf("<TR><TD>Model</TD><TD>Mfg</TD><TD>Vers.</TD><TD>Status</TD>"