summaryrefslogtreecommitdiff
path: root/src/visited.c
diff options
context:
space:
mode:
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);