~ubuntu-branches/ubuntu/natty/cups/natty

« back to all changes in this revision

Viewing changes to backend/usb-unix.c

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2009-09-15 11:30:07 UTC
  • mto: (12.1.3 sid) (14.1.1 sid) (25.1.2 lucid)
  • mto: This revision was merged to the branch mainline in revision 13.
  • Revision ID: james.westby@ubuntu.com-20090915113007-1gngzbskotfxronq
Tags: upstream-1.4.1
ImportĀ upstreamĀ versionĀ 1.4.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * "$Id: usb-unix.c 8169 2008-12-08 21:08:01Z mike $"
 
2
 * "$Id: usb-unix.c 8807 2009-08-31 18:45:43Z mike $"
3
3
 *
4
4
 *   USB port backend for the Common UNIX Printing System (CUPS).
5
5
 *
36
36
 */
37
37
 
38
38
static int      open_device(const char *uri, int *use_bc);
39
 
static void     side_cb(int print_fd, int device_fd, int snmp_fd,
 
39
static int      side_cb(int print_fd, int device_fd, int snmp_fd,
40
40
                        http_addr_t *addr, int use_bc);
41
41
 
42
42
 
579
579
  datalen = sizeof(data);
580
580
 
581
581
  if (cupsSideChannelRead(&command, &status, data, &datalen, 1.0))
582
 
  {
583
 
    _cupsLangPuts(stderr, _("WARNING: Failed to read side-channel request!\n"));
584
 
    return;
585
 
  }
 
582
    return (-1);
586
583
 
587
584
  switch (command)
588
585
  {
625
622
        break;
626
623
  }
627
624
 
628
 
  cupsSideChannelWrite(command, status, data, datalen, 1.0);
 
625
  return (cupsSideChannelWrite(command, status, data, datalen, 1.0));
629
626
}
630
627
 
631
628
 
632
629
/*
633
 
 * End of "$Id: usb-unix.c 8169 2008-12-08 21:08:01Z mike $".
 
630
 * End of "$Id: usb-unix.c 8807 2009-08-31 18:45:43Z mike $".
634
631
 */