/*
- * "$Id$"
+ * "$Id: usb.c 5590 2006-05-26 19:48:26Z mike $"
*
* USB port backend for the Common UNIX Printing System (CUPS).
*
void list_devices(void);
int print_device(const char *uri, const char *hostname,
const char *resource, const char *options,
- int fp, int copies, int argc, char *argv[]);
+ int print_fd, int copies, int argc, char *argv[]);
/*
const char *hostname, /* I - Hostname/manufacturer */
const char *resource, /* I - Resource/modelname */
const char *options, /* I - Device options/serial number */
- int fp, /* I - File descriptor to print */
+ int print_fd, /* I - File descriptor to print */
int copies, /* I - Copies to print */
int argc, /* I - Number of command-line arguments (6 or 7) */
char *argv[]) /* I - Command-line arguments */
(void)hostname;
(void)resource;
(void)options;
- (void)fp;
+ (void)print_fd;
(void)copies;
(void)argc;
(void)argv;
main(int argc, /* I - Number of command-line arguments (6 or 7) */
char *argv[]) /* I - Command-line arguments */
{
- int fp; /* Print file */
+ int print_fd; /* Print file */
int copies; /* Number of copies to print */
int status; /* Exit status */
int port; /* Port number (not used) */
if (argc == 6)
{
- fp = 0;
- copies = 1;
+ print_fd = 0;
+ copies = 1;
}
else
{
* Try to open the print file...
*/
- if ((fp = open(argv[6], O_RDONLY)) < 0)
+ if ((print_fd = open(argv[6], O_RDONLY)) < 0)
{
fprintf(stderr, "ERROR: unable to open print file %s - %s\n",
argv[6], strerror(errno));
* Finally, send the print file...
*/
- status = print_device(uri, hostname, resource, options, fp, copies, argc, argv);
+ status = print_device(uri, hostname, resource, options, print_fd, copies,
+ argc, argv);
/*
* Close the input file and return...
*/
- if (fp != 0)
- close(fp);
+ if (print_fd != 0)
+ close(print_fd);
return (status);
}
/*
- * End of "$Id$".
+ * End of "$Id: usb.c 5590 2006-05-26 19:48:26Z mike $".
*/