aboutsummaryrefslogtreecommitdiff
path: root/include/post.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/post.h')
-rw-r--r--include/post.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/include/post.h b/include/post.h
new file mode 100644
index 0000000..82c4ee5
--- /dev/null
+++ b/include/post.h
@@ -0,0 +1,25 @@
1#ifndef POST_H
2#define POST_H
3
4/*
5 * Represents a single syndicated post entry as received from a remote RSS feed
6 */
7typedef struct post_item_t {
8 char* title;
9 char* description;
10 char* url;
11} post_item_t;
12
13/*
14 * Frees the resources allocated for each of the fields in post_item_t
15 *
16 * Note that this WILL NOT free the provided pointer itself, only its
17 * constituent parts
18 */
19void free_post_item(post_item_t* item);
20
21#ifndef RSSMAIL_POST_MAX_FIELD_LENGTH
22#define RSSMAIL_POST_MAX_FIELD_LENGTH 2048
23#endif
24
25#endif