]> git.ipfire.org Git - thirdparty/cups.git/blob - backend/backend-private.h
d4a10b6a66be8b35d92d80fd3a5b25a8921e6252
[thirdparty/cups.git] / backend / backend-private.h
1 /*
2 * "$Id: backend-private.h 6649 2007-07-11 21:46:42Z mike $"
3 *
4 * Backend support definitions for the Common UNIX Printing System (CUPS).
5 *
6 * Copyright 2007 by Apple Inc.
7 * Copyright 1997-2007 by Easy Software Products, all rights reserved.
8 *
9 * These coded instructions, statements, and computer programs are the
10 * property of Apple Inc. and are protected by Federal copyright
11 * law. Distribution and use rights are outlined in the file "LICENSE.txt"
12 * "LICENSE" which should have been included with this file. If this
13 * file is missing or damaged, see the license at "http://www.cups.org/".
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>
27 # include <cups/sidechannel.h>
28 # include <cups/cups.h>
29 # include <cups/debug.h>
30 # include <cups/i18n.h>
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
41 # ifdef __cplusplus
42 extern "C" {
43 # endif /* __cplusplus */
44
45
46 /*
47 * Prototypes...
48 */
49
50 extern int backendDrainOutput(int print_fd, int device_fd);
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);
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));
59
60
61 # ifdef __cplusplus
62 }
63 # endif /* __cplusplus */
64 #endif /* !_CUPS_BACKEND_PRIVATE_H_ */
65
66
67 /*
68 * End of "$Id: backend-private.h 6649 2007-07-11 21:46:42Z mike $".
69 */