Add structs for articles and feeds

Signed-off-by: William Brawner <me@wbrawner.com>
This commit is contained in:
William Brawner 2020-07-30 11:04:47 -07:00
parent f820d71df6
commit 23aeb821c7

View file

@ -2,13 +2,39 @@
#define DB_FILE "feader.db"
typedef struct {
char* data;
char *data;
int size;
long totalSize;
char* url;
char* errBuf;
char *url;
char *errBuf;
} xml;
typedef struct {
long id;
char *title;
char *url;
long feed_id;
char *author;
bool is_favorite;
char *featured_image text;
char *content text;
char *excerpt text;
bool is_read;
char *published_date date;
} article;
typedef struct {
long id;
char *title;
char *site_url;
char *feed_url;
char *icon;
bool is_favorite;
char *last_polled date;
char *filter_accept;
char *filter_reject;
} feed;
void parse_xml_items(xml *x);
void get_xml_ptr(xml* x, char* url);