From 06b2f56f9594ec0bde746aab774ccb4aa33b9dbf Mon Sep 17 00:00:00 2001 From: Jim Evins Date: Sat, 7 Nov 2009 20:54:58 -0500 Subject: [PATCH] Added support for Code93 barcode. Added glue to support for Code93 barcode, which is already supported by the GNU Barcode Library. --- src/bc-gnubarcode.c | 2 ++ src/bc.c | 3 +++ 2 files changed, 5 insertions(+) diff --git a/src/bc-gnubarcode.c b/src/bc-gnubarcode.c index 060fc613..3e0ba437 100644 --- a/src/bc-gnubarcode.c +++ b/src/bc-gnubarcode.c @@ -164,6 +164,8 @@ gl_barcode_gnubarcode_new (const gchar *id, flags = BARCODE_MSI; } else if (g_ascii_strcasecmp (id, "PLS") == 0) { flags = BARCODE_PLS; + } else if (g_ascii_strcasecmp (id, "Code93") == 0) { + flags = BARCODE_93; } else { g_message( "Illegal barcode id %s", id ); flags = BARCODE_ANY; diff --git a/src/bc.c b/src/bc.c index 569d0d6e..5a1d6bc2 100644 --- a/src/bc.c +++ b/src/bc.c @@ -151,6 +151,9 @@ static const Backend backends[] = { { "PLS", N_("Plessey"), gl_barcode_gnubarcode_new, TRUE, TRUE, TRUE, TRUE, "0000000000", TRUE, 10}, + { "Code93", N_("Code 93"), gl_barcode_gnubarcode_new, + TRUE, TRUE, TRUE, FALSE, "0000000000", TRUE, 10}, + #endif /* HAVE_LIBBARCODE */ #ifdef HAVE_LIBIEC16022 -- 2.39.5