summaryrefslogtreecommitdiff
path: root/src/visited.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2020-11-27 08:34:40 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2020-11-27 08:34:40 +0200
commit8c19bf99fe2c4a9c7b31bb32d44b374516bff245 (patch)
treeb59e5ed89b60ae5580f0561acb3c6cfbe8fecfb6 /src/visited.c
parentf4d39068fb1bcacd6773cb00bb36ec84e3ef8f6f (diff)
SidebarWidget: Unsubscribe from feed; toggling read status
Diffstat (limited to 'src/visited.c')
-rw-r--r--src/visited.c5
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
203iBool containsUrl_Visited(const iVisited *d, const iString *url) {
204 const iTime time = urlVisitTime_Visited(d, url);
205 return isValid_Time(&time);
206}
207
203static int cmpWhenDescending_VisitedUrlPtr_(const void *a, const void *b) { 208static 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);