10#define NEWS_FOREVER INT64_MAX
15typedef struct news_s {
39void news_widget(
unsigned int wid,
int x,
int y,
int w,
int h );
44int news_add(
const char *title,
const char *content,
const char *faction,
45 const char *tag, ntime_t date, ntime_t date_to_rm,
int priority );
47void news_rm(
int id );
int news_add(const char *title, const char *content, const char *faction, const char *tag, ntime_t date, ntime_t date_to_rm, int priority)
makes a new article and puts it into the list
news_t * news_get(int id)
gets the article with id ID, else NULL
void news_exit(void)
Kills the old news thread.
int * generate_news(int faction)
Generates news from newslist from specific faction AND Generic news.
void news_widget(unsigned int wid, int x, int y, int w, int h)
Creates a news widget.
int news_init(void)
Initiate news linked list with a stack.
Represents a news article.