diff options
Diffstat (limited to 'src/feeds.c')
-rw-r--r-- | src/feeds.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/feeds.c b/src/feeds.c index 1af42477..211ee353 100644 --- a/src/feeds.c +++ b/src/feeds.c | |||
@@ -457,6 +457,17 @@ void refreshFinished_Feeds(void) { | |||
457 | stopWorker_Feeds_(&feeds_); | 457 | stopWorker_Feeds_(&feeds_); |
458 | } | 458 | } |
459 | 459 | ||
460 | void removeEntries_Feeds(uint32_t feedBookmarkId) { | ||
461 | iFeeds *d = &feeds_; | ||
462 | iForEach(Array, i, &d->entries.values) { | ||
463 | iFeedEntry **entry = i.value; | ||
464 | if ((*entry)->bookmarkId == feedBookmarkId) { | ||
465 | delete_FeedEntry(*entry); | ||
466 | remove_ArrayIterator(&i); | ||
467 | } | ||
468 | } | ||
469 | } | ||
470 | |||
460 | static int cmpTimeDescending_FeedEntryPtr_(const void *a, const void *b) { | 471 | static int cmpTimeDescending_FeedEntryPtr_(const void *a, const void *b) { |
461 | const iFeedEntry * const *e1 = a, * const *e2 = b; | 472 | const iFeedEntry * const *e1 = a, * const *e2 = b; |
462 | return -cmp_Time(&(*e1)->timestamp, &(*e2)->timestamp); | 473 | return -cmp_Time(&(*e1)->timestamp, &(*e2)->timestamp); |