diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-11-27 08:34:40 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-11-27 08:34:40 +0200 |
commit | 8c19bf99fe2c4a9c7b31bb32d44b374516bff245 (patch) | |
tree | b59e5ed89b60ae5580f0561acb3c6cfbe8fecfb6 /src/visited.c | |
parent | f4d39068fb1bcacd6773cb00bb36ec84e3ef8f6f (diff) |
SidebarWidget: Unsubscribe from feed; toggling read status
Diffstat (limited to 'src/visited.c')
-rw-r--r-- | src/visited.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/visited.c b/src/visited.c index a1dab6be..5d8a5676 100644 --- a/src/visited.c +++ b/src/visited.c | |||
@@ -200,6 +200,11 @@ iTime urlVisitTime_Visited(const iVisited *d, const iString *url) { | |||
200 | return item.when; | 200 | return item.when; |
201 | } | 201 | } |
202 | 202 | ||
203 | iBool containsUrl_Visited(const iVisited *d, const iString *url) { | ||
204 | const iTime time = urlVisitTime_Visited(d, url); | ||
205 | return isValid_Time(&time); | ||
206 | } | ||
207 | |||
203 | static int cmpWhenDescending_VisitedUrlPtr_(const void *a, const void *b) { | 208 | static int cmpWhenDescending_VisitedUrlPtr_(const void *a, const void *b) { |
204 | const iVisitedUrl *s = *(const void **) a, *t = *(const void **) b; | 209 | const iVisitedUrl *s = *(const void **) a, *t = *(const void **) b; |
205 | return -cmp_Time(&s->when, &t->when); | 210 | return -cmp_Time(&s->when, &t->when); |