• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Private PWG media API definitions for CUPS.
3  *
4  * Copyright © 2020-2024 by OpenPrinting.
5  * Copyright 2009-2016 by Apple Inc.
6  *
7  * Licensed under Apache License v2.0.  See the file "LICENSE" for more information.
8  */
9 
10 #ifndef _CUPS_PWG_PRIVATE_H_
11 #  define _CUPS_PWG_PRIVATE_H_
12 
13 
14 /*
15  * Include necessary headers...
16  */
17 
18 #  include <cups/cups.h>
19 
20 
21 /*
22  * C++ magic...
23  */
24 
25 #  ifdef __cplusplus
26 extern "C" {
27 #  endif /* __cplusplus */
28 
29 
30 /*
31  * Constants...
32  */
33 
34 #define _PWG_EPSILON	50		/* Matching tolerance in hundredths of millimeters */
35 
36 
37 /*
38  * Functions...
39  */
40 
41 extern void		_pwgGenerateSize(char *keyword, size_t keysize, const char *prefix, const char *name, int width, int length) _CUPS_INTERNAL_MSG("Use pwgFormatSizeName instead.");
42 extern int		_pwgInitSize(pwg_size_t *size, ipp_t *job, int *margins_set) _CUPS_INTERNAL_MSG("Use pwgInitSize instead.");
43 extern const pwg_media_t *_pwgMediaTable(size_t *num_media) _CUPS_PRIVATE;
44 extern pwg_media_t *_pwgMediaNearSize(pwg_media_t *pwg, char *keyword, size_t keysize, char *ppdname, size_t ppdsize, int width, int length, int epsilon) _CUPS_PRIVATE;
45 
46 
47 #  ifdef __cplusplus
48 }
49 #  endif /* __cplusplus */
50 
51 #endif /* !_CUPS_PWG_PRIVATE_H_ */
52