summaryrefslogtreecommitdiff
path: root/src/bookmarks.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/bookmarks.h')
-rw-r--r--src/bookmarks.h19
1 files changed, 12 insertions, 7 deletions
diff --git a/src/bookmarks.h b/src/bookmarks.h
index 9a1ecba3..4768af9f 100644
--- a/src/bookmarks.h
+++ b/src/bookmarks.h
@@ -45,17 +45,20 @@ iBool hasTag_Bookmark (const iBookmark *d, const char *tag);
45void addTag_Bookmark (iBookmark *d, const char *tag); 45void addTag_Bookmark (iBookmark *d, const char *tag);
46void removeTag_Bookmark (iBookmark *d, const char *tag); 46void removeTag_Bookmark (iBookmark *d, const char *tag);
47 47
48/*----------------------------------------------------------------------------------------------*/
49
48iDeclareType(Bookmarks) 50iDeclareType(Bookmarks)
49iDeclareTypeConstruction(Bookmarks) 51iDeclareTypeConstruction(Bookmarks)
50 52
51void clear_Bookmarks (iBookmarks *); 53void clear_Bookmarks (iBookmarks *);
52void load_Bookmarks (iBookmarks *, const char *dirPath); 54void load_Bookmarks (iBookmarks *, const char *dirPath);
53void save_Bookmarks (const iBookmarks *, const char *dirPath); 55void save_Bookmarks (const iBookmarks *, const char *dirPath);
54 56
55void add_Bookmarks (iBookmarks *, const iString *url, const iString *title, const iString *tags, iChar icon); 57void add_Bookmarks (iBookmarks *, const iString *url, const iString *title,
56iBool remove_Bookmarks (iBookmarks *, uint32_t id); 58 const iString *tags, iChar icon);
57iBookmark *get_Bookmarks (iBookmarks *, uint32_t id); 59iBool remove_Bookmarks (iBookmarks *, uint32_t id);
58uint32_t findUrl_Bookmarks (const iBookmarks *, const iString *url); /* O(n) */ 60iBookmark * get_Bookmarks (iBookmarks *, uint32_t id);
61uint32_t findUrl_Bookmarks (const iBookmarks *, const iString *url); /* O(n) */
59 62
60typedef iBool (*iBookmarksFilterFunc) (void *context, const iBookmark *); 63typedef iBool (*iBookmarksFilterFunc) (void *context, const iBookmark *);
61typedef int (*iBookmarksCompareFunc)(const iBookmark **, const iBookmark **); 64typedef int (*iBookmarksCompareFunc)(const iBookmark **, const iBookmark **);
@@ -75,3 +78,5 @@ iBool filterTagsRegExp_Bookmarks (void *regExp, const iBookmark *);
75 */ 78 */
76const iPtrArray *list_Bookmarks(const iBookmarks *, iBookmarksCompareFunc cmp, 79const iPtrArray *list_Bookmarks(const iBookmarks *, iBookmarksCompareFunc cmp,
77 iBookmarksFilterFunc filter, void *context); 80 iBookmarksFilterFunc filter, void *context);
81
82const iString * bookmarkListPage_Bookmarks (const iBookmarks *);