~ubuntu-branches/ubuntu/oneiric/cups/oneiric

« back to all changes in this revision

Viewing changes to backend/backend-private.h

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2010-04-09 16:19:16 UTC
  • mto: (25.1.2 lucid) (55.1.1 sid)
  • mto: This revision was merged to the branch mainline in revision 28.
  • Revision ID: james.westby@ubuntu.com-20100409161916-k0e6prz52ubf4vlg
Tags: upstream-1.4.3
ImportĀ upstreamĀ versionĀ 1.4.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * "$Id: backend-private.h 8807 2009-08-31 18:45:43Z mike $"
 
2
 * "$Id: backend-private.h 8912 2009-12-08 02:13:42Z mike $"
3
3
 *
4
4
 *   Backend support definitions for the Common UNIX Printing System (CUPS).
5
5
 *
34
34
#  include <cups/string.h>
35
35
#  include <signal.h>
36
36
 
 
37
#  ifdef __linux
 
38
#    include <sys/ioctl.h>
 
39
#    include <linux/lp.h>
 
40
#    define IOCNR_GET_DEVICE_ID         1
 
41
#    define LPIOC_GET_DEVICE_ID(len)    _IOC(_IOC_READ, 'P', IOCNR_GET_DEVICE_ID, len)
 
42
#    include <linux/parport.h>
 
43
#    include <linux/ppdev.h>
 
44
#    include <unistd.h>
 
45
#    include <fcntl.h>
 
46
#  endif /* __linux */
 
47
 
 
48
#  ifdef __sun
 
49
#    ifdef __sparc
 
50
#      include <sys/ecppio.h>
 
51
#    else
 
52
#      include <sys/ioccom.h>
 
53
#      include <sys/ecppsys.h>
 
54
#    endif /* __sparc */
 
55
#  endif /* __sun */
 
56
 
37
57
 
38
58
/*
39
59
 * C++ magic...
280
300
                                             int snmp_fd, http_addr_t *addr,
281
301
                                             int use_bc);
282
302
extern ssize_t          backendRunLoop(int print_fd, int device_fd, int snmp_fd,
283
 
                                       http_addr_t *addr, int use_bc,
 
303
                                       http_addr_t *addr, int use_bc, 
 
304
                                       int update_state, 
284
305
                                       int (*side_cb)(int print_fd,
285
306
                                                      int device_fd,
286
307
                                                      int snmp_fd,
297
318
 
298
319
 
299
320
/*
300
 
 * End of "$Id: backend-private.h 8807 2009-08-31 18:45:43Z mike $".
 
321
 * End of "$Id: backend-private.h 8912 2009-12-08 02:13:42Z mike $".
301
322
 */