1 /*
2  * CDDL HEADER START
3  *
4  * The contents of this file are subject to the terms of the
5  * Common Development and Distribution License, Version 1.0 only
6  * (the "License").  You may not use this file except in compliance
7  * with the License.
8  *
9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10  * or http://www.opensolaris.org/os/licensing.
11  * See the License for the specific language governing permissions
12  * and limitations under the License.
13  *
14  * When distributing Covered Code, include this CDDL HEADER in each
15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16  * If applicable, add the following below this CDDL HEADER, with the
17  * fields enclosed by brackets "[]" replaced with your own identifying
18  * information: Portions Copyright [yyyy] [name of copyright owner]
19  *
20  * CDDL HEADER END
21  */
22 /*
23  * Copyright (c) 1993-2001 by Sun Microsystems, Inc.
24  *	All Rights Reserved
25  */
26 
27 #ident	"%Z%%M%	%I%	%E% SMI"
28 
29 /**
30  * Structures and definitions needed for PostScript page manipulation
31  **/
32 #if !defined(_POSTREVERSE_H)
33 #define _POSTREVERSE_H
34 
35 /* PS DSC comments of interest */
36 #define PS_PAGE		"\n%%Page:"
37 #define PS_TRAILER	"\n%%Trailer"
38 #define PS_BEGIN_GLOBAL	"\n%%BeginGlobal"
39 #define PS_END_GLOBAL	"\n%%EndGlobal"
40 
41 #define	BLOCKSIZE	10
42 
43 struct _global {
44   caddr_t start;
45   size_t size;
46 };
47 typedef struct _global GLOBAL;
48 
49 struct _page {
50   unsigned int number;
51   char *label;
52   caddr_t start;
53   size_t size;
54 };
55 typedef struct _page PAGE;
56 
57 struct _header {
58   char *label;
59   caddr_t start;
60   size_t size;
61 };
62 typedef struct _header HEADER;
63 
64 struct _trailer {
65   char *label;
66   caddr_t start;
67   size_t size;
68 };
69 typedef struct _trailer TRAILER;
70 
71 struct _document {
72   char *name;
73   caddr_t start;
74   size_t size;
75   HEADER *header;
76   PAGE **page;
77   GLOBAL **global;
78   long pages;
79   TRAILER *trailer;
80 };
81 typedef struct _document DOCUMENT;
82 
83 #endif /* _POSTREVERSE_H */
84