h->id = id;
h->url = strdup(url);
h->title = strdup(title);
+ h->unread = -1;
h->excerpt = NULL;
h->content = NULL;
}
}
+struct feed *feed_new(int id, const char *url, const char *title)
+{
+ struct feed *f;
+
+ f = malloc(sizeof(struct feed));
+
+ f->id = id;
+ f->url = strdup(url);
+ f->title = strdup(title);
+ f->unread = -1;
+ f->headlines = NULL;
+
+ return f;
+}
+
void feed_free(struct feed *feed)
{
if (feed) {