aboutsummaryrefslogtreecommitdiff
path: root/include/fetch.h
blob: fc2fa437caa5382f21e31629cb1b93c6163978dc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef FETCH_H
#define FETCH_H

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

/*
 * Fetches an RSS document and converts into a list of post_item_t structures
 */
post_item_t* fetch_posts(rss_config_t* config, int* count);

/*
 * Initializes global resources required for fetching data from URLs
 */
void init_fetch(void);

/*
 * Cleans up global resources used for fetching data from URLs
 */
void cleanup_fetch(void);

#endif