*/
#include <stdlib.h>
+#include <stdio.h>
#include <string.h>
#include "ttrss_model.h"
free(feeds);
}
}
+
+struct feed *feeds_get_feed(struct feed **feeds, int id)
+{
+ struct feed **cur;
+
+ printf("%p\n", feeds);
+
+ if (feeds)
+ for (cur = feeds; *cur; cur++)
+ if ((*cur)->id == id) {
+ printf("match!\n");
+ return *cur;
+ }
+
+ return NULL;
+}