Initial commit
This commit is contained in:
commit
b2df740514
19 changed files with 1640 additions and 0 deletions
25
rss.h
Normal file
25
rss.h
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
|
||||
#ifndef RSS_ITEM_H
|
||||
#define RSS_ITEM_H
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
typedef struct __rss* rss_t;
|
||||
typedef struct __walk_info* rss_walk_info;
|
||||
|
||||
struct rss_item {
|
||||
const char *title;
|
||||
const char *link;
|
||||
};
|
||||
|
||||
rss_t rss_parse(void *buf, size_t size);
|
||||
|
||||
void rss_free(rss_t r);
|
||||
|
||||
/* walking interface */
|
||||
|
||||
int rss_walk_next(rss_t rss, struct rss_item *item);
|
||||
|
||||
int rss_walk_reset(rss_t rss);
|
||||
|
||||
#endif
|
||||
Reference in a new issue