/src/ghostpdl/psi/zncdummy.c
Line | Count | Source (jump to first uncovered line) |
1 | | /* Copyright (C) 2001-2023 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., 39 Mesa Street, Suite 108A, San Francisco, |
13 | | CA 94129, USA, for further information. |
14 | | */ |
15 | | |
16 | | /* Sample implementation for client custom processing of color spaces. */ |
17 | | |
18 | | /* |
19 | | * This module has been created to demonstrate how to add support for the use |
20 | | * of custom color handling to the Ghostscript graphics library via a custom color |
21 | | * callback mechanism. |
22 | | * |
23 | | * See the comments at the start of src/gsncdummy.c for more information. |
24 | | */ |
25 | | |
26 | | #include "math_.h" |
27 | | #include "memory_.h" |
28 | | #include "gx.h" |
29 | | #include "gscdefs.h" |
30 | | #include "gsnamecl.h" |
31 | | #include "malloc_.h" |
32 | | #include "ghost.h" |
33 | | #include "oper.h" |
34 | | #include "gsncdummy.h" |
35 | | |
36 | | /* |
37 | | * This procedure is here to simplify debugging. Normally one would expect the |
38 | | * custom color callback structure to be set up by a calling application. |
39 | | * Since I do not have a calling application, I need a simple way to setup the |
40 | | * callback parameter. The callback parameter is passed as a string value. |
41 | | * This routine puts the address of our demo callback structure into the |
42 | | * provided string. |
43 | | * |
44 | | * This routine allows the demo version of the PANTONE logic to be enabled |
45 | | * by adding the following to the command line: |
46 | | * -c "<< /CustomColorCallback 32 string .pantonecallback >> setsystemparams" -f |
47 | | */ |
48 | | |
49 | | /* <string> .pantonecallback <string> */ |
50 | | static int |
51 | | zpantonecallback(i_ctx_t *i_ctx_p) |
52 | 0 | { |
53 | 0 | return 0; |
54 | 0 | } |
55 | | |
56 | | /* ------ Initialization procedure ------ */ |
57 | | |
58 | | const op_def pantone_op_defs[] = |
59 | | { |
60 | | {"1.pantonecallback", zpantonecallback}, |
61 | | op_def_end(0) |
62 | | }; |