diff options
Diffstat (limited to 'src/bookmarks.c')
-rw-r--r-- | src/bookmarks.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/bookmarks.c b/src/bookmarks.c index 8fe7d109..7e98fb27 100644 --- a/src/bookmarks.c +++ b/src/bookmarks.c | |||
@@ -26,6 +26,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ | |||
26 | #include <the_Foundation/hash.h> | 26 | #include <the_Foundation/hash.h> |
27 | #include <the_Foundation/mutex.h> | 27 | #include <the_Foundation/mutex.h> |
28 | #include <the_Foundation/path.h> | 28 | #include <the_Foundation/path.h> |
29 | #include <the_Foundation/regexp.h> | ||
29 | 30 | ||
30 | void init_Bookmark(iBookmark *d) { | 31 | void init_Bookmark(iBookmark *d) { |
31 | init_String(&d->url); | 32 | init_String(&d->url); |
@@ -166,6 +167,12 @@ iBookmark *get_Bookmarks(iBookmarks *d, uint32_t id) { | |||
166 | return (iBookmark *) value_Hash(&d->bookmarks, id); | 167 | return (iBookmark *) value_Hash(&d->bookmarks, id); |
167 | } | 168 | } |
168 | 169 | ||
170 | iBool filterTagsRegExp_Bookmarks(void *regExp, const iBookmark *bm) { | ||
171 | iRegExpMatch m; | ||
172 | init_RegExpMatch(&m); | ||
173 | return matchString_RegExp(regExp, &bm->tags, &m); | ||
174 | } | ||
175 | |||
169 | const iPtrArray *list_Bookmarks(const iBookmarks *d, iBookmarksCompareFunc cmp, | 176 | const iPtrArray *list_Bookmarks(const iBookmarks *d, iBookmarksCompareFunc cmp, |
170 | iBookmarksFilterFunc filter, void *context) { | 177 | iBookmarksFilterFunc filter, void *context) { |
171 | lock_Mutex(d->mtx); | 178 | lock_Mutex(d->mtx); |