diff options
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); |