]>
Commit | Line | Data |
---|---|---|
ed486911 | 1 | /* |
bc44d920 | 2 | * "$Id: backend-private.h 6649 2007-07-11 21:46:42Z mike $" |
ed486911 | 3 | * |
4 | * Backend support definitions for the Common UNIX Printing System (CUPS). | |
5 | * | |
bc44d920 | 6 | * Copyright 2007 by Apple Inc. |
f7deaa1a | 7 | * Copyright 1997-2007 by Easy Software Products, all rights reserved. |
ed486911 | 8 | * |
9 | * These coded instructions, statements, and computer programs are the | |
bc44d920 | 10 | * property of Apple Inc. and are protected by Federal copyright |
11 | * law. Distribution and use rights are outlined in the file "LICENSE.txt" | |
ed486911 | 12 | * "LICENSE" which should have been included with this file. If this |
bc44d920 | 13 | * file is missing or damaged, see the license at "http://www.cups.org/". |
ed486911 | 14 | * |
15 | * This file is subject to the Apple OS-Developed Software exception. | |
16 | */ | |
17 | ||
18 | #ifndef _CUPS_BACKEND_PRIVATE_H_ | |
19 | # define _CUPS_BACKEND_PRIVATE_H_ | |
20 | ||
21 | ||
22 | /* | |
23 | * Include necessary headers. | |
24 | */ | |
25 | ||
26 | # include <cups/backend.h> | |
f7deaa1a | 27 | # include <cups/sidechannel.h> |
ed486911 | 28 | # include <cups/cups.h> |
29 | # include <cups/debug.h> | |
c0e1af83 | 30 | # include <cups/i18n.h> |
ed486911 | 31 | # include <stdlib.h> |
32 | # include <errno.h> | |
33 | # include <cups/string.h> | |
34 | # include <signal.h> | |
35 | ||
36 | ||
37 | /* | |
38 | * C++ magic... | |
39 | */ | |
40 | ||
d09495fa | 41 | # ifdef __cplusplus |
ed486911 | 42 | extern "C" { |
d09495fa | 43 | # endif /* __cplusplus */ |
ed486911 | 44 | |
45 | ||
46 | /* | |
47 | * Prototypes... | |
48 | */ | |
49 | ||
09a101d6 | 50 | extern int backendDrainOutput(int print_fd, int device_fd); |
ed486911 | 51 | extern int backendGetDeviceID(int fd, char *device_id, int device_id_size, |
52 | char *make_model, int make_model_size, | |
53 | const char *scheme, char *uri, int uri_size); | |
54 | extern int backendGetMakeModel(const char *device_id, char *make_model, | |
55 | int make_model_size); | |
f7deaa1a | 56 | extern ssize_t backendRunLoop(int print_fd, int device_fd, int use_bc, |
57 | void (*side_cb)(int print_fd, int device_fd, | |
58 | int use_bc)); | |
ed486911 | 59 | |
60 | ||
d09495fa | 61 | # ifdef __cplusplus |
ed486911 | 62 | } |
d09495fa | 63 | # endif /* __cplusplus */ |
ed486911 | 64 | #endif /* !_CUPS_BACKEND_PRIVATE_H_ */ |
65 | ||
66 | ||
67 | /* | |
bc44d920 | 68 | * End of "$Id: backend-private.h 6649 2007-07-11 21:46:42Z mike $". |
ed486911 | 69 | */ |