all: Support DEVICE=serno when in standalone mode.
This commit is contained in:
parent
c91459603a
commit
1b460b4072
14
README
14
README
|
@ -45,9 +45,9 @@
|
|||
The backends need to be owned by root, with 0700 file permissions in order
|
||||
to function properly.
|
||||
|
||||
To install these backends, simply type 'make install'.
|
||||
To install these backends for use with CUPS, simply type 'make install'.
|
||||
|
||||
You may need to restart CUPS.
|
||||
You may need to restart CUPS afterwards.
|
||||
|
||||
***************************************************************************
|
||||
Standalone usage:
|
||||
|
@ -64,6 +64,16 @@
|
|||
Gutenprint (eg via its gimp plugin) or the Windows print-to-file
|
||||
output.
|
||||
|
||||
NOTE2: If there is more than one device present that the backend handles,
|
||||
the backend will choose the first supported device it finds. If you
|
||||
wish to specify the specific device when operating in standalone
|
||||
mode, set the 'DEVICE' environment variable to the target device's
|
||||
serial number. For example:
|
||||
|
||||
DEVICE=N782 backend filename
|
||||
|
||||
All backends support this syntax.
|
||||
|
||||
***************************************************************************
|
||||
canon-selphy backend:
|
||||
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
#include <fcntl.h>
|
||||
#include <signal.h>
|
||||
|
||||
#define VERSION "0.18"
|
||||
#define VERSION "0.19"
|
||||
#define URI_PREFIX "kodak1400://"
|
||||
|
||||
#include "backend_common.c"
|
||||
|
@ -353,10 +353,13 @@ int main (int argc, char **argv)
|
|||
}
|
||||
use_serno++;
|
||||
} else {
|
||||
use_serno = getenv("DEVICE");
|
||||
|
||||
if (!strcmp("-stc", argv[1])) {
|
||||
query_only = 1;
|
||||
goto skip_read;
|
||||
}
|
||||
|
||||
/* Open Input File */
|
||||
if (strcmp("-", argv[1])) {
|
||||
data_fd = open(argv[1], O_RDONLY);
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
#include <fcntl.h>
|
||||
#include <signal.h>
|
||||
|
||||
#define VERSION "0.13"
|
||||
#define VERSION "0.14"
|
||||
#define URI_PREFIX "kodak6800://"
|
||||
#define STR_LEN_MAX 64
|
||||
|
||||
|
@ -374,6 +374,8 @@ int main (int argc, char **argv)
|
|||
}
|
||||
use_serno++;
|
||||
} else {
|
||||
use_serno = getenv("DEVICE");
|
||||
|
||||
if (!strcmp("-qtc", argv[1]) ||
|
||||
!strcmp("-stc", argv[1])) {
|
||||
query_only = 1;
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
#include <fcntl.h>
|
||||
#include <signal.h>
|
||||
|
||||
#define VERSION "0.54"
|
||||
#define VERSION "0.55"
|
||||
#define URI_PREFIX "canonselphy://"
|
||||
|
||||
#include "backend_common.c"
|
||||
|
@ -544,6 +544,8 @@ int main (int argc, char **argv)
|
|||
}
|
||||
use_serno++;
|
||||
} else {
|
||||
use_serno = getenv("DEVICE");
|
||||
|
||||
/* Open Input File */
|
||||
if (strcmp("-", argv[1])) {
|
||||
data_fd = open(argv[1], O_RDONLY);
|
||||
|
|
|
@ -39,7 +39,7 @@
|
|||
#include <fcntl.h>
|
||||
#include <signal.h>
|
||||
|
||||
#define VERSION "0.15"
|
||||
#define VERSION "0.16"
|
||||
#define URI_PREFIX "shinkos2145://"
|
||||
|
||||
#include "backend_common.c"
|
||||
|
@ -1180,6 +1180,8 @@ int main (int argc, char **argv)
|
|||
}
|
||||
use_serno++;
|
||||
} else {
|
||||
use_serno = getenv("DEVICE");
|
||||
|
||||
if (!strcmp("-qs", argv[1]) ||
|
||||
!strcmp("-qf", argv[1]) ||
|
||||
!strcmp("-qe", argv[1]) ||
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
#include <fcntl.h>
|
||||
#include <signal.h>
|
||||
|
||||
#define VERSION "0.03"
|
||||
#define VERSION "0.04"
|
||||
#define URI_PREFIX "sonyupdr150://"
|
||||
#define STR_LEN_MAX 64
|
||||
|
||||
|
@ -157,6 +157,8 @@ int main (int argc, char **argv)
|
|||
}
|
||||
use_serno++;
|
||||
} else {
|
||||
use_serno = getenv("DEVICE");
|
||||
|
||||
/* Open Input File */
|
||||
if (strcmp("-", argv[1])) {
|
||||
data_fd = open(argv[1], O_RDONLY);
|
||||
|
|
Loading…
Reference in a new issue