?? 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;
//下面字段僅供數(shù)據(jù)插入使用
int is_inserted;
int is_overdue;//該鏈接是否過期(超過當(dāng)前時間一天)
};
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
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -