xref: /aosp_15_r20/external/libcups/cups/pwg-private.h (revision 5e7646d21f1134fb0638875d812ef646c12ab91e)
1*5e7646d2SAndroid Build Coastguard Worker /*
2*5e7646d2SAndroid Build Coastguard Worker  * Private PWG media API definitions for CUPS.
3*5e7646d2SAndroid Build Coastguard Worker  *
4*5e7646d2SAndroid Build Coastguard Worker  * Copyright 2009-2016 by Apple Inc.
5*5e7646d2SAndroid Build Coastguard Worker  *
6*5e7646d2SAndroid Build Coastguard Worker  * Licensed under Apache License v2.0.  See the file "LICENSE" for more information.
7*5e7646d2SAndroid Build Coastguard Worker  */
8*5e7646d2SAndroid Build Coastguard Worker 
9*5e7646d2SAndroid Build Coastguard Worker #ifndef _CUPS_PWG_PRIVATE_H_
10*5e7646d2SAndroid Build Coastguard Worker #  define _CUPS_PWG_PRIVATE_H_
11*5e7646d2SAndroid Build Coastguard Worker 
12*5e7646d2SAndroid Build Coastguard Worker 
13*5e7646d2SAndroid Build Coastguard Worker /*
14*5e7646d2SAndroid Build Coastguard Worker  * Include necessary headers...
15*5e7646d2SAndroid Build Coastguard Worker  */
16*5e7646d2SAndroid Build Coastguard Worker 
17*5e7646d2SAndroid Build Coastguard Worker #  include <cups/cups.h>
18*5e7646d2SAndroid Build Coastguard Worker 
19*5e7646d2SAndroid Build Coastguard Worker 
20*5e7646d2SAndroid Build Coastguard Worker /*
21*5e7646d2SAndroid Build Coastguard Worker  * C++ magic...
22*5e7646d2SAndroid Build Coastguard Worker  */
23*5e7646d2SAndroid Build Coastguard Worker 
24*5e7646d2SAndroid Build Coastguard Worker #  ifdef __cplusplus
25*5e7646d2SAndroid Build Coastguard Worker extern "C" {
26*5e7646d2SAndroid Build Coastguard Worker #  endif /* __cplusplus */
27*5e7646d2SAndroid Build Coastguard Worker 
28*5e7646d2SAndroid Build Coastguard Worker 
29*5e7646d2SAndroid Build Coastguard Worker /*
30*5e7646d2SAndroid Build Coastguard Worker  * Functions...
31*5e7646d2SAndroid Build Coastguard Worker  */
32*5e7646d2SAndroid Build Coastguard Worker 
33*5e7646d2SAndroid Build Coastguard Worker extern void		_pwgGenerateSize(char *keyword, size_t keysize,
34*5e7646d2SAndroid Build Coastguard Worker 				         const char *prefix,
35*5e7646d2SAndroid Build Coastguard Worker 					 const char *name,
36*5e7646d2SAndroid Build Coastguard Worker 					 int width, int length)
37*5e7646d2SAndroid Build Coastguard Worker 					 _CUPS_INTERNAL_MSG("Use pwgFormatSizeName instead.");
38*5e7646d2SAndroid Build Coastguard Worker extern int		_pwgInitSize(pwg_size_t *size, ipp_t *job,
39*5e7646d2SAndroid Build Coastguard Worker 				     int *margins_set)
40*5e7646d2SAndroid Build Coastguard Worker 				     _CUPS_INTERNAL_MSG("Use pwgInitSize instead.");
41*5e7646d2SAndroid Build Coastguard Worker extern const pwg_media_t *_pwgMediaTable(size_t *num_media) _CUPS_PRIVATE;
42*5e7646d2SAndroid Build Coastguard Worker extern pwg_media_t *_pwgMediaNearSize(int width, int length, int epsilon) _CUPS_PRIVATE;
43*5e7646d2SAndroid Build Coastguard Worker 
44*5e7646d2SAndroid Build Coastguard Worker #  ifdef __cplusplus
45*5e7646d2SAndroid Build Coastguard Worker }
46*5e7646d2SAndroid Build Coastguard Worker #  endif /* __cplusplus */
47*5e7646d2SAndroid Build Coastguard Worker 
48*5e7646d2SAndroid Build Coastguard Worker #endif /* !_CUPS_PWG_PRIVATE_H_ */
49