/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/* 
 * e-xml-utils.h
 * Copyright 2000, 2001, Ximian, Inc.
 *
 * Authors:
 *   Chris Lahey <clahey@ximian.com>
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Library General Public
 * License, version 2, as published by the Free Software Foundation.
 *
 * This library 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
 * Library General Public License for more details.
 *
 * You should have received a copy of the GNU Library 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 <glib.h>
#include <libxml/tree.h>

G_BEGIN_DECLS

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 gchar   *lang);
/* lang_list set to NULL means use the current locale. */
xmlNode *e_xml_get_child_by_name_by_lang_list        (const xmlNode *parent,
                                                      const gchar   *name,
                                                      const GList   *lang_list);
xmlNode *e_xml_get_child_by_name_no_lang             (const xmlNode *parent,
                                                      const gchar   *name);


gint     e_xml_get_integer_prop_by_name              (const xmlNode *parent,
                                                      const xmlChar *prop_name);
gint     e_xml_get_integer_prop_by_name_with_default (const xmlNode *parent,
                                                      const xmlChar *prop_name,
                                                      gint           def);
void     e_xml_set_integer_prop_by_name              (xmlNode       *parent,
                                                      const xmlChar *prop_name,
                                                      gint           value);


guint    e_xml_get_uint_prop_by_name                 (const xmlNode *parent,
                                                      const xmlChar *prop_name);
guint    e_xml_get_uint_prop_by_name_with_default    (const xmlNode *parent,
                                                      const xmlChar *prop_name,
                                                      guint          def);
void     e_xml_set_uint_prop_by_name                 (xmlNode       *parent,
                                                      const xmlChar *prop_name,
                                                      guint          value);


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

gdouble  e_xml_get_double_prop_by_name               (const xmlNode *parent,
                                                      const xmlChar *prop_name);
gdouble  e_xml_get_double_prop_by_name_with_default  (const xmlNode *parent,
                                                      const xmlChar *prop_name,
                                                      gdouble        def);
void      e_xml_set_double_prop_by_name              ( xmlNode       *parent,
                                                      const xmlChar *prop_name,
                                                      gdouble        value);


gchar    *e_xml_get_string_prop_by_name              (const xmlNode *parent,
                                                      const xmlChar *prop_name);
gchar    *e_xml_get_string_prop_by_name_with_default (const xmlNode *parent,
                                                      const xmlChar *prop_name,
                                                      const gchar   *def);
void      e_xml_set_string_prop_by_name              (xmlNode       *parent,
                                                      const xmlChar *prop_name,
                                                      const gchar   *value);

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

int e_xml_save_file (const char *filename, xmlDocPtr doc);

G_END_DECLS

#endif /* __E_XML_UTILS__ */
d-ports-gnome/refs/?h=gstreamer&amp;id=9daa402ff59e2d7b7b2d1ac955f18d30edc1f594'>refs</a><a class='active' href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/log/games/vor?h=gstreamer'>log</a><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/tree/games/vor?h=gstreamer&amp;id=9daa402ff59e2d7b7b2d1ac955f18d30edc1f594'>tree</a><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/commit/games/vor?h=gstreamer&amp;id=9daa402ff59e2d7b7b2d1ac955f18d30edc1f594'>commit</a><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/diff/games/vor?h=gstreamer&amp;id=9daa402ff59e2d7b7b2d1ac955f18d30edc1f594'>diff</a><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/stats/games/vor?h=gstreamer'>stats</a></td><td class='form'><form class='right' method='get' action='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/log/games/vor'>
<input type='hidden' name='h' value='gstreamer'/><input type='hidden' name='id' value='9daa402ff59e2d7b7b2d1ac955f18d30edc1f594'/><select name='qt'>
<option value='grep'>log msg</option>
<option value='author'>author</option>
<option value='committer'>committer</option>
<option value='range'>range</option>
</select>
<input class='txt' type='search' size='10' name='q' value=''/>
<input type='submit' value='search'/>
</form>
</td></tr></table>
<div class='path'>path: <a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/log/?h=gstreamer&amp;id=9daa402ff59e2d7b7b2d1ac955f18d30edc1f594'>root</a>/<a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/log/games?h=gstreamer&amp;id=9daa402ff59e2d7b7b2d1ac955f18d30edc1f594'>games</a>/<a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/log/games/vor?h=gstreamer&amp;id=9daa402ff59e2d7b7b2d1ac955f18d30edc1f594'>vor</a></div><div class='content'><table class='list nowrap'><tr class='nohover'><th></th><th class='left'>Commit message (<a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/log/games/vor?h=gstreamer&amp;id=9daa402ff59e2d7b7b2d1ac955f18d30edc1f594&amp;showmsg=1'>Expand</a>)</th><th class='left'>Author</th><th class='left'>Age</th><th class='left'>Files</th><th class='left'>Lines</th></tr>
<tr><td class='commitgraph'>* </td><td><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/commit/games/vor?h=gstreamer&amp;id=ffdf8b50b5fa0b45b4be6b17b68ced12a00bda87'>- bump all port that indirectly depends on libjpeg and have not yet been bump...</a></td><td>dinoex</td><td><span title='2009-07-31 21:57:52 +0800'>2009-07-31</span></td><td>1</td><td><span class='deletions'>-1</span>/<span class='insertions'>+1</span></td></tr>
<tr><td class='commitgraph'>* </td><td><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/commit/games/vor?h=gstreamer&amp;id=c2847b82df8901a2d30e69421f7eb051aebe5e45'>- Update URL of my distfile mirror in 87 ports</a></td><td>amdmi3</td><td><span title='2009-07-29 00:34:36 +0800'>2009-07-29</span></td><td>1</td><td><span class='deletions'>-1</span>/<span class='insertions'>+1</span></td></tr>
<tr><td class='commitgraph'>* </td><td><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/commit/games/vor?h=gstreamer&amp;id=3921fbb4cd7c67fa1f7e7a52e90bcd1fc072aab7'>- Add a patch I've forgotten to `cvs add` -&gt; make the port respect PREFIX, LO...</a></td><td>amdmi3</td><td><span title='2009-06-16 07:49:22 +0800'>2009-06-16</span></td><td>2</td><td><span class='deletions'>-0</span>/<span class='insertions'>+26</span></td></tr>
<tr><td class='commitgraph'>* </td><td><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/commit/games/vor?h=gstreamer&amp;id=91d90ef27c7e331de0339aea4bc8ce433d36134c'>- Update to 0.5.4</a></td><td>amdmi3</td><td><span title='2009-06-01 06:32:41 +0800'>2009-06-01</span>