~ubuntu-branches/ubuntu/vivid/liferea/vivid-proposed

« back to all changes in this revision

Viewing changes to src/xml.h

  • Committer: Package Import Robot
  • Author(s): bojo42
  • Date: 2012-03-29 14:17:21 UTC
  • mfrom: (1.3.9) (3.2.5 sid)
  • Revision ID: package-import@ubuntu.com-20120329141721-tbfopcrc5797wxt7
Tags: 1.8.3-0.1ubuntu1
* New upstream release (LP: #290666, #371754, #741543, #716688)
* Merge from Debian unstable (LP: #935147), remaining changes:
* debian/patches:
  - drop gtk-status-icon.patch & notification-append as in upstream
  - drop fix_systray_behavior as mostly upstreamed and rest seems unused
  - 01_ubuntu_feedlists: update & rename, move planets to "Open Source"  
  - add_X-Ubuntu-Gettext-Domain: rebase
  - libunity.patch: rebase, apply before indicator patch (liferea_shell.c)
  - libindicate_increase_version.patch: exclude from libindicate.patch
  - deactivate libindicate.patch, seems partly upstreamed and needs rework
* debian/control: libindicate-dev, libindicate-gtk-dev & libunity-dev
* debian/liferea.indicate & liferea.install: ship indicator desktop file
* debian/rules: enable libindicate

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/**
2
2
 * @file xml.h  XML helper methods for Liferea
3
3
 * 
4
 
 * Copyright (C) 2003-2009  Lars Lindner <lars.lindner@gmail.com>
 
4
 * Copyright (C) 2003-2010  Lars Lindner <lars.lindner@gmail.com>
5
5
 * Copyright (C) 2004-2006  Nathan J. Conrad <t98502@users.sourceforge.net>
6
6
 *
7
7
 * This program is free software; you can redistribute it and/or modify
77
77
gchar * xhtml_strip_dhtml (const gchar *html);
78
78
 
79
79
/**
 
80
 * Strips HTML tags we cannot or do not want to render, which
 
81
 * would mess up HTML rendering.
 
82
 *
 
83
 * @param html  some HTML content
 
84
 *
 
85
 * @return newly allocated stripped HTML string
 
86
 */
 
87
gchar * xhtml_strip_unsupported_tags (const gchar *html);
 
88
 
 
89
/**
80
90
 * Convert the given string to proper XHTML content.
81
91
 * Note: this function does not respect relative URLs
82
92
 * and is to be used for cache migration 1.0 -> 1.1 only!
116
126
 *
117
127
 * @return TRUE if result set was not empty
118
128
 */
119
 
gboolean xpath_foreach_match (xmlNodePtr node, gchar *expr, xpathMatchFunc func, gpointer user_data);
 
129
gboolean xpath_foreach_match (xmlNodePtr node, const gchar *expr, xpathMatchFunc func, gpointer user_data);
120
130
 
121
131
/**
122
132
 * Return the value of a attribute.
154
164
 *
155
165
 * @param data          XML document buffer
156
166
 * @param length        length of buffer
157
 
 * @param recovery      enable tolerant XML parsing (use only for RSS 0.9x!)
158
167
 * @param errors        parser error context (can be NULL)
159
168
 *
160
169
 * @return XML document
161
170
 */
162
 
xmlDocPtr xml_parse (gchar *data, size_t length, gboolean revocery, errorCtxtPtr errors);
 
171
xmlDocPtr xml_parse (gchar *data, size_t length, errorCtxtPtr errors);
163
172
 
164
173
/**
165
174
 * Common function to create a XML DOM object from a given
166
 
 * XML buffer. This function sets up a parser context,
167
 
 * enables recovery mode and sets up the error handler.
 
175
 * XML buffer. This function sets up a parser context
 
176
 * and sets up the error handler.
168
177
 * 
169
178
 * The function returns a XML document pointer or NULL
170
179
 * if the document could not be read. It also sets 
177
186
 */
178
187
xmlDocPtr xml_parse_feed (feedParserCtxtPtr fpc);
179
188
 
180
 
/**
181
 
 * Common function for reliable writing of XML documents
182
 
 * to disk. In difference to xmlSaveFile*() this function
183
 
 * syncs the file and gives better error handling.
184
 
 *
185
 
 * @param doc           the XML document to save
186
 
 * @param filename      the filename to write to
187
 
 *
188
 
 * @returns 0 on success
189
 
 */
190
 
gint xml_save_to_file (xmlDocPtr doc, gchar *filename);
191
 
 
192
189
#endif