]> git.sur5r.net Git - glabels/commitdiff
Added support for Code93 barcode.
authorJim Evins <evins@snaught.com>
Sun, 8 Nov 2009 01:54:58 +0000 (20:54 -0500)
committerJim Evins <evins@snaught.com>
Sun, 8 Nov 2009 01:54:58 +0000 (20:54 -0500)
Added glue to support for Code93 barcode, which is already supported by
the GNU Barcode Library.

src/bc-gnubarcode.c
src/bc.c

index 060fc613ee06721a7e60af75241863157d272065..3e0ba437f60c54b922614571d3b46b1a83892717 100644 (file)
@@ -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;
index 569d0d6e1ebf3415cb86a535dd2debc5f9a5ef41..5a1d6bc29ad779fb4ab6c043ee87071a74a5b4fd 100644 (file)
--- 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