diff options
Diffstat (limited to 'src/bookmarks.h')
-rw-r--r-- | src/bookmarks.h | 19 |
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); | |||
45 | void addTag_Bookmark (iBookmark *d, const char *tag); | 45 | void addTag_Bookmark (iBookmark *d, const char *tag); |
46 | void removeTag_Bookmark (iBookmark *d, const char *tag); | 46 | void removeTag_Bookmark (iBookmark *d, const char *tag); |
47 | 47 | ||
48 | /*----------------------------------------------------------------------------------------------*/ | ||
49 | |||
48 | iDeclareType(Bookmarks) | 50 | iDeclareType(Bookmarks) |
49 | iDeclareTypeConstruction(Bookmarks) | 51 | iDeclareTypeConstruction(Bookmarks) |
50 | 52 | ||
51 | void clear_Bookmarks (iBookmarks *); | 53 | void clear_Bookmarks (iBookmarks *); |
52 | void load_Bookmarks (iBookmarks *, const char *dirPath); | 54 | void load_Bookmarks (iBookmarks *, const char *dirPath); |
53 | void save_Bookmarks (const iBookmarks *, const char *dirPath); | 55 | void save_Bookmarks (const iBookmarks *, const char *dirPath); |
54 | 56 | ||
55 | void add_Bookmarks (iBookmarks *, const iString *url, const iString *title, const iString *tags, iChar icon); | 57 | void add_Bookmarks (iBookmarks *, const iString *url, const iString *title, |
56 | iBool remove_Bookmarks (iBookmarks *, uint32_t id); | 58 | const iString *tags, iChar icon); |
57 | iBookmark *get_Bookmarks (iBookmarks *, uint32_t id); | 59 | iBool remove_Bookmarks (iBookmarks *, uint32_t id); |
58 | uint32_t findUrl_Bookmarks (const iBookmarks *, const iString *url); /* O(n) */ | 60 | iBookmark * get_Bookmarks (iBookmarks *, uint32_t id); |
61 | uint32_t findUrl_Bookmarks (const iBookmarks *, const iString *url); /* O(n) */ | ||
59 | 62 | ||
60 | typedef iBool (*iBookmarksFilterFunc) (void *context, const iBookmark *); | 63 | typedef iBool (*iBookmarksFilterFunc) (void *context, const iBookmark *); |
61 | typedef int (*iBookmarksCompareFunc)(const iBookmark **, const iBookmark **); | 64 | typedef int (*iBookmarksCompareFunc)(const iBookmark **, const iBookmark **); |
@@ -75,3 +78,5 @@ iBool filterTagsRegExp_Bookmarks (void *regExp, const iBookmark *); | |||
75 | */ | 78 | */ |
76 | const iPtrArray *list_Bookmarks(const iBookmarks *, iBookmarksCompareFunc cmp, | 79 | const iPtrArray *list_Bookmarks(const iBookmarks *, iBookmarksCompareFunc cmp, |
77 | iBookmarksFilterFunc filter, void *context); | 80 | iBookmarksFilterFunc filter, void *context); |
81 | |||
82 | const iString * bookmarkListPage_Bookmarks (const iBookmarks *); | ||