From 94038468beaa9340f2ae5bddebf7c0ef205f9435 Mon Sep 17 00:00:00 2001 From: hooper114 Date: Sun, 22 Feb 2009 17:21:11 +0000 Subject: [PATCH] Add --directsvg option --- frontend/main.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/frontend/main.c b/frontend/main.c index 6afaf9be..e68a6f3c 100644 --- a/frontend/main.c +++ b/frontend/main.c @@ -144,6 +144,7 @@ int main(int argc, char **argv) {"box", 0, 0, 0}, {"directeps", 0, 0, 0}, {"directpng", 0, 0, 0}, + {"directsvg", 0, 0, 0}, {"barcode=", 1, 0, 'b'}, {"height=", 1, 0, 0}, {"whitesp=", 1, 0, 'w'}, @@ -185,6 +186,10 @@ int main(int argc, char **argv) my_symbol->output_options += BARCODE_STDOUT; strncpy(my_symbol->outfile, "dummy.png", 10); } + if(!strcmp(long_options[option_index].name, "directsvg")) { + my_symbol->output_options += BARCODE_STDOUT; + strncpy(my_symbol->outfile, "dummy.svg", 10); + } if(!strcmp(long_options[option_index].name, "gs1")) { my_symbol->input_mode = GS1_MODE; }