1/*
2 * "$Id: xmlppd.h,v 1.2 2007/12/24 03:05:52 rlk Exp $"
3 *
4 *   Copyright 2007 by Michael R Sweet and Robert Krawitz
5 *
6 *   This program is free software; you can redistribute it and/or modify it
7 *   under the terms of the GNU General Public License as published by the Free
8 *   Software Foundation; either version 2 of the License, or (at your option)
9 *   any later version.
10 *
11 *   This program is distributed in the hope that it will be useful, but
12 *   WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13 *   or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
14 *   for more details.
15 *
16 *   You should have received a copy of the GNU General Public License
17 *   along with this program; if not, write to the Free Software
18 *   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19 */
20
21#ifndef GUTENPRINT_INTERNAL_XMLPPD_H
22#define GUTENPRINT_INTERNAL_XMLPPD_H
23
24extern stp_mxml_node_t *stpi_xmlppd_find_group_named(stp_mxml_node_t *root, const char *name);
25
26extern stp_mxml_node_t *stpi_xmlppd_find_group_index(stp_mxml_node_t *root, int idx);
27
28extern int stpi_xmlppd_find_group_count(stp_mxml_node_t *root);
29
30extern stp_mxml_node_t *stpi_xmlppd_find_option_named(stp_mxml_node_t *root, const char *name);
31
32extern stp_mxml_node_t *stpi_xmlppd_find_option_index(stp_mxml_node_t *root, int idx);
33
34extern int stpi_xmlppd_find_option_count(stp_mxml_node_t *root);
35
36extern stp_mxml_node_t *stpi_xmlppd_find_choice_named(stp_mxml_node_t *option, const char *name);
37
38extern stp_mxml_node_t *stpi_xmlppd_find_choice_index(stp_mxml_node_t *option, int idx);
39
40extern int stpi_xmlppd_find_choice_count(stp_mxml_node_t *option);
41
42extern stp_mxml_node_t *stpi_xmlppd_find_page_size(stp_mxml_node_t *root, const char *name);
43
44extern stp_mxml_node_t *stpi_xmlppd_read_ppd_file(const char *filename);
45
46#endif /* GUTENPRINT_INTERNAL_XMLPPD_H */
47