aboutsummaryrefslogblamecommitdiff
path: root/include/parse.h
blob: 5bbad27f51d6d803f5a72f6eb2d41c8d1482c550 (plain) (tree)

























                                                                              
#ifndef PARSE_H
#define PARSE_H

#include <libxml/tree.h>

#include "config.h"
#include "post.h"

/*
 * Reads the contents of the provided XML document and uses the information it
 * contains in order to construct zero or more syndicated post objects
 */
post_item_t* parse_posts_from_doc(xmlDocPtr doc, int* count,
                                  rss_config_t* config);

/*
 * Initializes the global resources used by LibXML
 */
void init_parse(void);

/*
 * Cleans up the global resources used by LibXML
 */
void cleanup_parse(void);

#endif