diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-11-23 13:35:25 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-11-23 13:35:25 +0200 |
commit | fe46ad8a6af32a52889719a838ad7178605c1d3d (patch) | |
tree | 3feb94898be0b0342cb9e17e62a040f01137ee15 /src/bookmarks.h | |
parent | 723e09d915f103fab6f0308d1f11502b72aced92 (diff) |
Bookmarks: Finding a bookmark by URL
This needs a better lookup if there are tons of bookmarks.
Diffstat (limited to 'src/bookmarks.h')
-rw-r--r-- | src/bookmarks.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bookmarks.h b/src/bookmarks.h index 4889e7b5..84bdbd68 100644 --- a/src/bookmarks.h +++ b/src/bookmarks.h | |||
@@ -51,6 +51,7 @@ void save_Bookmarks (const iBookmarks *, const char *dirPath); | |||
51 | void add_Bookmarks (iBookmarks *, const iString *url, const iString *title, const iString *tags, iChar icon); | 51 | void add_Bookmarks (iBookmarks *, const iString *url, const iString *title, const iString *tags, iChar icon); |
52 | iBool remove_Bookmarks (iBookmarks *, uint32_t id); | 52 | iBool remove_Bookmarks (iBookmarks *, uint32_t id); |
53 | iBookmark *get_Bookmarks (iBookmarks *, uint32_t id); | 53 | iBookmark *get_Bookmarks (iBookmarks *, uint32_t id); |
54 | uint32_t findUrl_Bookmarks (const iBookmarks *, const iString *url); /* O(n) */ | ||
54 | 55 | ||
55 | typedef iBool (*iBookmarksFilterFunc) (void *context, const iBookmark *); | 56 | typedef iBool (*iBookmarksFilterFunc) (void *context, const iBookmark *); |
56 | typedef int (*iBookmarksCompareFunc)(const iBookmark **, const iBookmark **); | 57 | typedef int (*iBookmarksCompareFunc)(const iBookmark **, const iBookmark **); |