aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-xml-utils.h
blob: 6d857e4e1db8fcfa7f4d9108e05df25b9479412d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/* 
 * e-xml-utils.h
 * Copyright (C) 2000  Helix Code, Inc.
 * Author: Chris Lahey <clahey@helixcode.com>
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation; either version 2 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public
 * License along with this library; if not, write to the
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 * Boston, MA 02111-1307, USA.
 */

#ifndef __E_XML_UTILS__
#define __E_XML_UTILS__

#include <gnome.h>
#include <gnome-xml/tree.h>

xmlNode  *e_xml_get_child_by_name                   (const xmlNode *parent,
                             const xmlChar *child_name);
/* lang set to NULL means use the current locale. */
xmlNode  *e_xml_get_child_by_name_by_lang           (const xmlNode *parent,
                             const xmlChar *child_name,
                             const char    *lang);

int       e_xml_get_integer_prop_by_name            (const xmlNode *parent,
                             const xmlChar *prop_name);
void      e_xml_set_integer_prop_by_name            (xmlNode       *parent,
                             const xmlChar *prop_name,
                             int            value);

gboolean  e_xml_get_bool_prop_by_name               (const xmlNode *parent,
                             const xmlChar *prop_name);
void      e_xml_set_bool_prop_by_name               (xmlNode       *parent,
                             const xmlChar *prop_name,
                             gboolean       value);

double    e_xml_get_double_prop_by_name             (const xmlNode *parent,
                             const xmlChar *prop_name);
void      e_xml_set_double_prop_by_name             (xmlNode       *parent,
                             const xmlChar *prop_name,
                             double         value);

char     *e_xml_get_string_prop_by_name             (const xmlNode *parent,
                             const xmlChar *prop_name);
void      e_xml_set_string_prop_by_name             (xmlNode       *parent,
                             const xmlChar *prop_name,
                             char          *value);

char     *e_xml_get_translated_string_prop_by_name  (const xmlNode *parent,
                             const xmlChar *prop_name);

#endif /* __E_XML_UTILS__ */
npoet2014-12-053-5/+4 * Cleanup plistbapt2014-10-271-2/+0 * Change INSTALL_DATA to install with mode 644antoine2014-09-051-11/+0 * - Sort USESsunpoet2014-07-041-1/+1 * - Switch to USES=libtool, drop .la filesamdmi32014-06-262-5/+6 * - Update to 3.13.1sunpoet2014-05-082-3/+3 * - Allow "make package" as usersunpoet2014-05-021-0/+11 * - Update to 3.13.0sunpoet2014-04-293-6/+6 * The FreeBSD x11@ and graphics team proudly presentszeising2014-04-171-0/+1 * - Strip shared librarysunpoet2013-10-201-0/+1 * - Update to 3.12.1sunpoet2013-10-203-13/+8 * Add NO_STAGE all over the place in preparation for the staging support (cat: ...bapt2013-09-211-0/+1 * - Update to 3.12.0sunpoet2013-09-123-18/+28 * - Use USES=gmakesunpoet2013-08-211-2/+1 * - Update to 7.31.0sunpoet2013-07-121-0/+1 * This changes almost all the "gnomehack" only USE_GNOME cases to USES= pathfix.eadler2013-03-191-1/+1 * - Get rid of PTHREAD_CFLAGS and PTHREAD_LIBS (category: devel)gahr2013-02-141-2/+1 * - Update to 3.11.7sunpoet2012-12-093-11/+5 * - Update to 3.11.5sunpoet2012-09-303-13/+8 * - Update to 3.11.3sunpoet2012-02-152-5/+5 * - Update to 3.11.2sunpoet2012-01-244-6/+11 * - Use appropriate *FLAGSsunpoet2011-11-161-1/+3 * - Update to 3.11.1sunpoet2011-05-033-7/+9 * - Remove obsolete MD5 checksumsunpoet2011-04-121-2/+0 * - Use LOCAL/sunpoet as backup MASTER_SITESsunpoet2010-10-011-1/+1 * - Update to 3.11.0sunpoet2010-09-284-6/+17 * - Update MAINTAINER to my FreeBSD.org addresssunpoet2010-09-231-1/+1 * - Update to 3.10.2sylvio2010-06-204-32/+31 * - Update to 3.10.0wen2010-05-073-18/+14 * Chase the ftp/curl shlib version bump.roam2010-04-03