(no commit message)
[prss.git] / src / ttrss_model.c
index a1cdcef..93c9409 100644 (file)
@@ -178,3 +178,22 @@ struct feed *feeds_get_feed(struct feed **feeds, int id)
 
        return NULL;
 }
+
+struct headline *feeds_get_headline(struct feed **feeds, int id)
+{
+       struct headline *h;
+
+       if (!feeds)
+               return NULL;
+
+       while (*feeds) {
+               h = feed_get_headline(*feeds, id);
+
+               if (h)
+                       return h;
+
+               feeds++;
+       }
+
+       return NULL;
+}