| 1 | /* |
| 2 | * |
| 3 | * Copyright 2007 by Michael R Sweet and Robert Krawitz |
| 4 | * |
| 5 | * This program is free software; you can redistribute it and/or modify it |
| 6 | * under the terms of the GNU General Public License as published by the Free |
| 7 | * Software Foundation; either version 2 of the License, or (at your option) |
| 8 | * any later version. |
| 9 | * |
| 10 | * This program is distributed in the hope that it will be useful, but |
| 11 | * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY |
| 12 | * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
| 13 | * for more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU General Public License |
| 16 | * along with this program. If not, see <https://www.gnu.org/licenses/>. |
| 17 | */ |
| 18 | |
| 19 | #ifndef GUTENPRINT_INTERNAL_XMLPPD_H |
| 20 | #define GUTENPRINT_INTERNAL_XMLPPD_H |
| 21 | |
| 22 | extern stp_mxml_node_t *stpi_xmlppd_find_group_named(stp_mxml_node_t *root, const char *name); |
| 23 | |
| 24 | extern stp_mxml_node_t *stpi_xmlppd_find_group_index(stp_mxml_node_t *root, int idx); |
| 25 | |
| 26 | extern int stpi_xmlppd_find_group_count(stp_mxml_node_t *root); |
| 27 | |
| 28 | extern stp_mxml_node_t *stpi_xmlppd_find_option_named(stp_mxml_node_t *root, const char *name); |
| 29 | |
| 30 | extern stp_mxml_node_t *stpi_xmlppd_find_option_index(stp_mxml_node_t *root, int idx); |
| 31 | |
| 32 | extern int stpi_xmlppd_find_option_count(stp_mxml_node_t *root); |
| 33 | |
| 34 | extern stp_mxml_node_t *stpi_xmlppd_find_choice_named(stp_mxml_node_t *option, const char *name); |
| 35 | |
| 36 | extern stp_mxml_node_t *stpi_xmlppd_find_choice_index(stp_mxml_node_t *option, int idx); |
| 37 | |
| 38 | extern int stpi_xmlppd_find_choice_count(stp_mxml_node_t *option); |
| 39 | |
| 40 | extern stp_mxml_node_t *stpi_xmlppd_find_page_size(stp_mxml_node_t *root, const char *name); |
| 41 | |
| 42 | extern stp_mxml_node_t *stpi_xmlppd_read_ppd_file(const char *filename); |
| 43 | |
| 44 | #endif /* GUTENPRINT_INTERNAL_XMLPPD_H */ |