1 /* Copyright (C) 2001-2019 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., 1305 Grant Avenue - Suite 200, Novato, 13 CA 94945, U.S.A., +1(415)492-9861, for further information. 14 */ 15 16 17 /* Common definitions for "erasepage optimization" device */ 18 19 #ifndef gdevepo_INCLUDED 20 # define gdevepo_INCLUDED 21 22 #ifndef gxdevice_INCLUDED 23 #include "gxdevice.h" 24 #endif 25 26 #define EPO_DEVICENAME "erasepage_optimization" 27 28 typedef struct gx_device_s gx_device_epo; 29 30 typedef struct { 31 subclass_common; 32 gx_color_index last_color; // Pure color only 33 } erasepage_subclass_data; 34 35 /* Check if epo subclass device installed, and install it if not */ 36 int epo_check_and_install(gx_device *dev); 37 void gx_epo_finalize(const gs_memory_t *cmem, void *vptr); 38 39 #endif /* gdevepo_INCLUDED */ 40