| 1 | /* |
| 2 | * |
| 3 | * Print plug-in driver utility functions for the GIMP. |
| 4 | * |
| 5 | * Copyright 1997-2000 Michael Sweet ([email protected]) and |
| 6 | * Robert Krawitz ([email protected]) |
| 7 | * |
| 8 | * This program is free software; you can redistribute it and/or modify it |
| 9 | * under the terms of the GNU General Public License as published by the Free |
| 10 | * Software Foundation; either version 2 of the License, or (at your option) |
| 11 | * any later version. |
| 12 | * |
| 13 | * This program is distributed in the hope that it will be useful, but |
| 14 | * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY |
| 15 | * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
| 16 | * for more details. |
| 17 | * |
| 18 | * You should have received a copy of the GNU General Public License |
| 19 | * along with this program. If not, see <https://www.gnu.org/licenses/>. |
| 20 | */ |
| 21 | |
| 22 | #ifdef HAVE_CONFIG_Hcxx . . $ `<built-in>:409:9`! |
| 23 | #include <config.h>cxx . . $ `<file>/config.h`/ |
| 24 | #endif |
| 25 | #include <gutenprint/gutenprint.h>cxx . . $ `<file>/include/gutenprint/gutenprint.h`/ |
| 26 | #include "gutenprint-internal.h"cxx . . $ `<file>/src/main/gutenprint-internal.h`/ |
| 27 | |
| 28 | void |
| 29 | stp_image_initcxx . . $ stp_image_init(7010b42a94b47a79).(stp_image_tcxx . . $ stp_image_t# *image) |
| 30 | { |
| 31 | if (image->initcxx . . $ stp_image#init.) |
| 32 | image->initcxx . . $ stp_image#init.(image); |
| 33 | } |
| 34 | |
| 35 | void |
| 36 | stp_image_resetcxx . . $ stp_image_reset(7010b42a94b47a79).(stp_image_tcxx . . $ stp_image_t# *image) |
| 37 | { |
| 38 | if (image->resetcxx . . $ stp_image#reset.) |
| 39 | image->resetcxx . . $ stp_image#reset.(image); |
| 40 | } |
| 41 | |
| 42 | int |
| 43 | stp_image_widthcxx . . $ stp_image_width(ba31fd85910919f2).(stp_image_tcxx . . $ stp_image_t# *image) |
| 44 | { |
| 45 | return image->widthcxx . . $ stp_image#width.(image); |
| 46 | } |
| 47 | |
| 48 | int |
| 49 | stp_image_heightcxx . . $ stp_image_height(ba31fd85910919f2).(stp_image_tcxx . . $ stp_image_t# *image) |
| 50 | { |
| 51 | return image->heightcxx . . $ stp_image#height.(image); |
| 52 | } |
| 53 | |
| 54 | stp_image_status_tcxx . . $ stp_image_status_t# |
| 55 | stp_image_get_rowcxx . . $ stp_image_get_row(c6bbe34ec0bddcf0).(stp_image_tcxx . . $ stp_image_t# *image, unsigned char *data, |
| 56 | size_t byte_limit, int row) |
| 57 | { |
| 58 | return image->get_rowcxx . . $ stp_image#get_row.(image, data, byte_limit, row); |
| 59 | } |
| 60 | |
| 61 | const char * |
| 62 | stp_image_get_appnamecxx . . $ stp_image_get_appname(97b8a1c82bcbc822).(stp_image_tcxx . . $ stp_image_t# *image) |
| 63 | { |
| 64 | if (image->get_appnamecxx . . $ stp_image#get_appname.) |
| 65 | return image->get_appnamecxx . . $ stp_image#get_appname.(image); |
| 66 | else |
| 67 | return NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 68 | } |
| 69 | |
| 70 | void |
| 71 | stp_image_concludecxx . . $ stp_image_conclude(7010b42a94b47a79).(stp_image_tcxx . . $ stp_image_t# *image) |
| 72 | { |
| 73 | if (image->concludecxx . . $ stp_image#conclude.) |
| 74 | image->concludecxx . . $ stp_image#conclude.(image); |
| 75 | } |