From cc1a6b09c88cce3fdffc0f270a02c0e0994018a0 Mon Sep 17 00:00:00 2001 From: Henning Geinitz Date: Mon, 8 Jul 2002 20:24:53 +0000 Subject: [PATCH] Added support for :status :unsupported. Henning Meier-Geinitz --- tools/sane-desc.c | 44 +++++++++++++++++++++++++++++++++++--------- 1 file changed, 35 insertions(+), 9 deletions(-) diff --git a/tools/sane-desc.c b/tools/sane-desc.c index d55d1b760..0a9b14137 100644 --- a/tools/sane-desc.c +++ b/tools/sane-desc.c @@ -21,14 +21,15 @@ 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 COLOR_ALPHA "#B00000" -#define COLOR_BETA "#B0B000" -#define COLOR_STABLE "#008000" -#define COLOR_UNTESTED "#0000B0" -#define COLOR_NEW "#F00000" +#define COLOR_ALPHA "#B00000" +#define COLOR_BETA "#B0B000" +#define COLOR_STABLE "#008000" +#define COLOR_UNTESTED "#0000B0" +#define COLOR_UNSUPPORTED "#F00000" +#define COLOR_NEW "#F00000" #include <../include/sane/config.h> @@ -80,7 +81,8 @@ typedef enum status_entry status_alpha, status_beta, status_stable, - status_untested + status_untested, + status_unsupported } status_entry; @@ -648,6 +650,13 @@ read_files (void) current_model->name); 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 { DBG_ERR ("unknown status of model `%s': `%s'\n", @@ -1386,6 +1395,9 @@ ascii_print_backends (void) case status_untested: printf (" status untested\n"); break; + case status_unsupported: + printf (" status unsupported\n"); + break; default: printf (" status *unknown*\n"); break; @@ -1639,6 +1651,10 @@ html_backends_table (device_type dev_type) printf ("untested"); break; + case status_unsupported: + printf ("unsupported"); + break; default: printf ("?"); break; @@ -1754,6 +1770,10 @@ html_mfgs_table (device_type dev_type) case status_untested: printf ("untested"); break; + case status_unsupported: + printf ("unsupported"); + break; default: printf ("?"); break; @@ -1926,7 +1946,10 @@ html_print_backends (void) "
How the device is connected to the computer.
\n" "
Status:
\n" "
A vague indication of robustness and reliability.\n" - "
  • untested means the " + "
    • unsupported" + " means the device is not supported at least by this backend. " + " It may be supported by other backends, however.\n" + "
    • untested means the " " device may be supported but couldn't be tested. Be very " " careful.\n" "
    • alpha means it must\n" @@ -1987,7 +2010,10 @@ html_print_mfgs (void) "
      How the device is connected to the computer.
      \n" "
      Status:
      \n" "
      A vague indication of robustness and reliability.\n" - "
      • untested means the " + "
        • unsupported" + " means the device is not supported at least by this backend. " + " It may be supported by other backends, however.\n" + "
        • untested means the " " device may be supported but couldn't be tested. Be very " " careful.\n" "
        • alpha means it must\n"