1 /* Copyright (C) 2001-2012 Artifex Software, Inc.
2    All Rights Reserved.
3 
4    This software is provided AS-IS with no warranty, either express or
5    implied.
6 
7    This software is distributed under license and may not be copied,
8    modified or distributed except as expressly authorized under the terms
9    of the license contained in the file LICENSE in this distribution.
10 
11    Refer to licensing information at http://www.artifex.com or contact
12    Artifex Software, Inc.,  7 Mt. Lassen Drive - Suite A-134, San Rafael,
13    CA  94903, U.S.A., +1(415)492-9861, for further information.
14 */
15 
16 
17 /* Interpreter definitions for Pattern color */
18 
19 #ifndef ipcolor_INCLUDED
20 #  define ipcolor_INCLUDED
21 
22 /*
23  * Define the structure for remembering the pattern dictionary.
24  * This is the "client data" in the template.
25  * See zgstate.c (int_gstate) or zfont2.c (font_data) for information
26  * as to why we define this as a structure rather than a ref array.
27  */
28 typedef struct int_pattern_s {
29     ref dict;
30 } int_pattern;
31 
32 #define private_st_int_pattern()	/* in zpcolor.c */\
33   gs_private_st_ref_struct(st_int_pattern, int_pattern, "int_pattern")
34 
35 /* Create an interpreter pattern structure. */
36 int int_pattern_alloc(int_pattern **ppdata, const ref *op,
37                       gs_memory_t *mem);
38 
39 #endif /* ipcolor_INCLUDED */
40