MCPcopy Create free account
hub / github.com/OpenPrinting/cups / print_device

Function print_device

backend/usb.c:81–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79 */
80
81int /* O - Exit status */
82print_device(const char *uri, /* I - Device URI */
83 const char *hostname, /* I - Hostname/manufacturer */
84 const char *resource, /* I - Resource/modelname */
85 char *options, /* I - Device options/serial number */
86 int print_fd, /* I - File descriptor to print */
87 int copies, /* I - Copies to print */
88 int argc, /* I - Number of command-line arguments (6 or 7) */
89 char *argv[]) /* I - Command-line arguments */
90{
91 /*
92 * Can't print, so just reference the arguments to eliminate compiler
93 * warnings and return and exit status of 1. Normally you would use the
94 * arguments to send a file to the printer and return 0 if everything
95 * worked OK and non-zero if there was an error.
96 */
97
98 (void)uri;
99 (void)hostname;
100 (void)resource;
101 (void)options;
102 (void)print_fd;
103 (void)copies;
104 (void)argc;
105 (void)argv;
106
107 return (CUPS_BACKEND_FAILED);
108}
109#endif /* HAVE_LIBUSB */
110
111

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected