]>
git.ipfire.org Git - thirdparty/cups.git/blob - cups/pwgmedia.h
4 * PWG media name API definitions for the Common UNIX Printing System (CUPS).
6 * Copyright 2009 by Apple Inc.
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/".
15 #ifndef _CUPS_PWGMEDIA_H_
16 # define _CUPS_PWGMEDIA_H_
25 # endif /* __cplusplus */
29 * Types and structures...
32 typedef struct _cups_pwg_media_s
/**** Common media size data ****/
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 */
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
,
53 # endif /* __cplusplus */
55 #endif /* !_CUPS_PWGMEDIA_H_ */