kopia lustrzana https://gitlab.com/sane-project/backends
Added support for :status :unsupported.
Henning Meier-Geinitz <henning@meier-geinitz.de>DEVEL_2_0_BRANCH-1
rodzic
999d535f7e
commit
cc1a6b09c8
|
@ -21,14 +21,15 @@
|
||||||
MA 02111-1307, USA.
|
MA 02111-1307, USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define SANE_DESC_VERSION "0.6"
|
#define SANE_DESC_VERSION "0.7"
|
||||||
|
|
||||||
#define MAN_PAGE_LINK "http://www.mostang.com/sane/man/%s.5.html"
|
#define MAN_PAGE_LINK "http://www.mostang.com/sane/man/%s.5.html"
|
||||||
#define COLOR_ALPHA "#B00000"
|
#define COLOR_ALPHA "#B00000"
|
||||||
#define COLOR_BETA "#B0B000"
|
#define COLOR_BETA "#B0B000"
|
||||||
#define COLOR_STABLE "#008000"
|
#define COLOR_STABLE "#008000"
|
||||||
#define COLOR_UNTESTED "#0000B0"
|
#define COLOR_UNTESTED "#0000B0"
|
||||||
#define COLOR_NEW "#F00000"
|
#define COLOR_UNSUPPORTED "#F00000"
|
||||||
|
#define COLOR_NEW "#F00000"
|
||||||
|
|
||||||
#include <../include/sane/config.h>
|
#include <../include/sane/config.h>
|
||||||
|
|
||||||
|
@ -80,7 +81,8 @@ typedef enum status_entry
|
||||||
status_alpha,
|
status_alpha,
|
||||||
status_beta,
|
status_beta,
|
||||||
status_stable,
|
status_stable,
|
||||||
status_untested
|
status_untested,
|
||||||
|
status_unsupported
|
||||||
}
|
}
|
||||||
status_entry;
|
status_entry;
|
||||||
|
|
||||||
|
@ -648,6 +650,13 @@ read_files (void)
|
||||||
current_model->name);
|
current_model->name);
|
||||||
current_model->status = status_untested;
|
current_model->status = status_untested;
|
||||||
}
|
}
|
||||||
|
else if (strcmp (string_entry, ":unsupported") == 0)
|
||||||
|
{
|
||||||
|
DBG_INFO
|
||||||
|
("setting status of model `%s' to `unsupported'\n",
|
||||||
|
current_model->name);
|
||||||
|
current_model->status = status_unsupported;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
DBG_ERR ("unknown status of model `%s': `%s'\n",
|
DBG_ERR ("unknown status of model `%s': `%s'\n",
|
||||||
|
@ -1386,6 +1395,9 @@ ascii_print_backends (void)
|
||||||
case status_untested:
|
case status_untested:
|
||||||
printf (" status untested\n");
|
printf (" status untested\n");
|
||||||
break;
|
break;
|
||||||
|
case status_unsupported:
|
||||||
|
printf (" status unsupported\n");
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
printf (" status *unknown*\n");
|
printf (" status *unknown*\n");
|
||||||
break;
|
break;
|
||||||
|
@ -1639,6 +1651,10 @@ html_backends_table (device_type dev_type)
|
||||||
printf ("<font color=" COLOR_UNTESTED
|
printf ("<font color=" COLOR_UNTESTED
|
||||||
">untested</font>");
|
">untested</font>");
|
||||||
break;
|
break;
|
||||||
|
case status_unsupported:
|
||||||
|
printf ("<font color=" COLOR_UNSUPPORTED
|
||||||
|
">unsupported</font>");
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
printf ("?");
|
printf ("?");
|
||||||
break;
|
break;
|
||||||
|
@ -1754,6 +1770,10 @@ html_mfgs_table (device_type dev_type)
|
||||||
case status_untested:
|
case status_untested:
|
||||||
printf ("<font color=" COLOR_UNTESTED ">untested</font>");
|
printf ("<font color=" COLOR_UNTESTED ">untested</font>");
|
||||||
break;
|
break;
|
||||||
|
case status_unsupported:
|
||||||
|
printf ("<font color=" COLOR_UNSUPPORTED
|
||||||
|
">unsupported</font>");
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
printf ("?");
|
printf ("?");
|
||||||
break;
|
break;
|
||||||
|
@ -1926,7 +1946,10 @@ html_print_backends (void)
|
||||||
" <dd>How the device is connected to the computer.</dd>\n"
|
" <dd>How the device is connected to the computer.</dd>\n"
|
||||||
" <dt><b>Status</b>:</dt>\n"
|
" <dt><b>Status</b>:</dt>\n"
|
||||||
" <dd>A vague indication of robustness and reliability.\n"
|
" <dd>A vague indication of robustness and reliability.\n"
|
||||||
" <ul><li><font color=" COLOR_UNTESTED ">untested</font> means the "
|
" <ul><li><font color=" COLOR_UNSUPPORTED ">unsupported</font>"
|
||||||
|
" means the device is not supported at least by this backend. "
|
||||||
|
" It may be supported by other backends, however.\n"
|
||||||
|
" <li><font color=" COLOR_UNTESTED ">untested</font> means the "
|
||||||
" device may be supported but couldn't be tested. Be very "
|
" device may be supported but couldn't be tested. Be very "
|
||||||
" careful.\n"
|
" careful.\n"
|
||||||
" <li><font color=" COLOR_ALPHA ">alpha</font> means it must\n"
|
" <li><font color=" COLOR_ALPHA ">alpha</font> means it must\n"
|
||||||
|
@ -1987,7 +2010,10 @@ html_print_mfgs (void)
|
||||||
" <dd>How the device is connected to the computer.</dd>\n"
|
" <dd>How the device is connected to the computer.</dd>\n"
|
||||||
" <dt><b>Status</b>:</dt>\n"
|
" <dt><b>Status</b>:</dt>\n"
|
||||||
" <dd>A vague indication of robustness and reliability.\n"
|
" <dd>A vague indication of robustness and reliability.\n"
|
||||||
" <ul><li><font color=" COLOR_UNTESTED ">untested</font> means the "
|
" <ul><li><font color=" COLOR_UNSUPPORTED ">unsupported</font>"
|
||||||
|
" means the device is not supported at least by this backend. "
|
||||||
|
" It may be supported by other backends, however.\n"
|
||||||
|
" <li><font color=" COLOR_UNTESTED ">untested</font> means the "
|
||||||
" device may be supported but couldn't be tested. Be very "
|
" device may be supported but couldn't be tested. Be very "
|
||||||
" careful.\n"
|
" careful.\n"
|
||||||
" <li><font color=" COLOR_ALPHA ">alpha</font> means it must\n"
|
" <li><font color=" COLOR_ALPHA ">alpha</font> means it must\n"
|
||||||
|
|
Ładowanie…
Reference in New Issue