]>
Commit | Line | Data |
---|---|---|
c168a833 MS |
1 | /* |
2 | * "$Id$" | |
3 | * | |
4 | * PWG media name API definitions for the Common UNIX Printing System (CUPS). | |
5 | * | |
6 | * Copyright 2009 by Apple Inc. | |
7 | * | |
8 | * These coded instructions, statements, and computer programs are the | |
9 | * property of Apple Inc. and are protected by Federal copyright | |
10 | * law. Distribution and use rights are outlined in the file "LICENSE.txt" | |
11 | * which should have been included with this file. If this file is | |
12 | * file is missing or damaged, see the license at "http://www.cups.org/". | |
13 | */ | |
14 | ||
15 | #ifndef _CUPS_PWGMEDIA_H_ | |
16 | # define _CUPS_PWGMEDIA_H_ | |
17 | ||
18 | ||
19 | /* | |
20 | * C++ magic... | |
21 | */ | |
22 | ||
23 | # ifdef __cplusplus | |
24 | extern "C" { | |
25 | # endif /* __cplusplus */ | |
26 | ||
27 | ||
28 | /* | |
29 | * Types and structures... | |
30 | */ | |
31 | ||
32 | typedef struct _cups_pwg_media_s /**** Common media size data ****/ | |
33 | { | |
34 | const char *pwg, /* PWG 5101.1 "self describing" name */ | |
35 | *legacy; /* IPP/ISO legacy name */ | |
36 | double width, /* Width in points */ | |
37 | length; /* Length in points */ | |
38 | } _cups_pwg_media_t; | |
39 | ||
40 | ||
41 | /* | |
42 | * Functions... | |
43 | */ | |
44 | ||
45 | extern _cups_pwg_media_t *_cupsPWGMediaByLegacy(const char *legacy); | |
46 | extern _cups_pwg_media_t *_cupsPWGMediaByName(const char *pwg); | |
47 | extern _cups_pwg_media_t *_cupsPWGMediaBySize(double width, | |
48 | double length); | |
49 | ||
50 | ||
51 | # ifdef __cplusplus | |
52 | } | |
53 | # endif /* __cplusplus */ | |
54 | ||
55 | #endif /* !_CUPS_PWGMEDIA_H_ */ | |
56 | ||
57 | /* | |
58 | * End of "$Id$". | |
59 | */ |