1 /*
2  * Copyright (C) 2011  Daniel Garcia <danigm@wadobo.com>
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
17  */
18 
19 #ifndef __GEPUB_UTILS_H__
20 #define __GEPUB_UTILS_H__
21 
22 #include <glib.h>
23 #include <libxml/tree.h>
24 
25 xmlNode * gepub_utils_get_element_by_tag  (xmlNode *node, const gchar *name);
26 xmlNode * gepub_utils_get_element_by_attr (xmlNode *node, const gchar *attr, const gchar *value);
27 GList *   gepub_utils_get_text_elements   (xmlNode *node);
28 GBytes *  gepub_utils_replace_resources   (GBytes *content, const gchar *path);
29 gchar *   gepub_utils_get_prop            (xmlNode *node, const gchar *prop);
30 
31 #endif
32