Add structs for articles and feeds
Signed-off-by: William Brawner <me@wbrawner.com>
This commit is contained in:
parent
f820d71df6
commit
23aeb821c7
1 changed files with 29 additions and 3 deletions
32
src/feader.h
32
src/feader.h
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue