📄 rss.h
字号:
#ifndef RSS_H
#define RSS_H
#include "configure.h"
#define LENGTH_LINK 128
#define LENGTH_AUTHOR 64
#define LENGTH_CATEGORY 32
#define LENGTH_PUBDATE 20
#define LENGTH_DESCRIPTION 1024
#define LENGTH_COMMENTS 64
#define LENGTH_TTL 5
#define LENGTH_LANGUAGE 10
struct IMAGE
{
char* title;
char* link;
char* url;
};
struct ITEM
{
char* title;
char* link;
char* author;
char* pubdate;
char* description;
char* source;
struct ITEM* pNext;
//下面字段仅供数据插入使用
int is_inserted;
int is_overdue;//该链接是否过期(超过当前时间一天)
};
struct Channel
{
struct ITEM* pItem;
struct IMAGE* pImage;
int item_size;
char* title;
char* link;
char* language;
char* description;
char* generator;
char* category;
char* pubdate;
struct Channel* pNext;
};
struct Channel* malloc_channel();
void free_channel(struct Channel* channel);
struct Channel* createRss(char* rss, struct Outline* outline);
void destroyRss(struct Channel* channel);
void rssVersion(char* version);
#endif //RSS_H
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -