|
|
|
@ -677,6 +677,7 @@ static void kodak605_cmdline(void)
|
|
|
|
|
DEBUG("\t\t[ -R ] # Reset printer to factory defaults\n");
|
|
|
|
|
DEBUG("\t\t[ -s ] # Query status\n");
|
|
|
|
|
DEBUG("\t\t[ -X jobid ] # Cancel job\n");
|
|
|
|
|
// DEBUG("\t\t[ -Z ] # Dump all parameters\n");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static int kodak605_cmdline_arg(void *vctx, int argc, char **argv)
|
|
|
|
@ -687,7 +688,7 @@ static int kodak605_cmdline_arg(void *vctx, int argc, char **argv)
|
|
|
|
|
if (!ctx)
|
|
|
|
|
return -1;
|
|
|
|
|
|
|
|
|
|
while ((i = getopt(argc, argv, GETOPT_LIST_GLOBAL "b:c:C:eFil:L:mrRsX:")) >= 0) {
|
|
|
|
|
while ((i = getopt(argc, argv, GETOPT_LIST_GLOBAL "b:c:C:eFil:L:mrRsX:Z")) >= 0) {
|
|
|
|
|
switch(i) {
|
|
|
|
|
GETOPT_PROCESS_GLOBAL
|
|
|
|
|
case 'b':
|
|
|
|
@ -735,10 +736,13 @@ static int kodak605_cmdline_arg(void *vctx, int argc, char **argv)
|
|
|
|
|
if (!j)
|
|
|
|
|
kodak605_dump_status(ctx, &sts);
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
case 'X':
|
|
|
|
|
j = sinfonia_canceljob(&ctx->dev, atoi(optarg));
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
case 'Z':
|
|
|
|
|
j = sinfonia_dumpallparams(&ctx->dev);
|
|
|
|
|
break;
|
|
|
|
|
default:
|
|
|
|
|
break; /* Ignore completely */
|
|
|
|
|
}
|
|
|
|
|