aboutsummaryrefslogtreecommitdiff
path: root/include/fetch.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/fetch.h')
-rw-r--r--include/fetch.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/include/fetch.h b/include/fetch.h
new file mode 100644
index 0000000..fc2fa43
--- /dev/null
+++ b/include/fetch.h
@@ -0,0 +1,22 @@
1#ifndef FETCH_H
2#define FETCH_H
3
4#include "config.h"
5#include "post.h"
6
7/*
8 * Fetches an RSS document and converts into a list of post_item_t structures
9 */
10post_item_t* fetch_posts(rss_config_t* config, int* count);
11
12/*
13 * Initializes global resources required for fetching data from URLs
14 */
15void init_fetch(void);
16
17/*
18 * Cleans up global resources used for fetching data from URLs
19 */
20void cleanup_fetch(void);
21
22#endif