diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/bookmarks.h | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/src/bookmarks.h b/src/bookmarks.h index be2a4cfd..d5182b48 100644 --- a/src/bookmarks.h +++ b/src/bookmarks.h | |||
@@ -53,24 +53,23 @@ void removeTag_Bookmark (iBookmark *d, const char *tag); | |||
53 | iDeclareType(Bookmarks) | 53 | iDeclareType(Bookmarks) |
54 | iDeclareTypeConstruction(Bookmarks) | 54 | iDeclareTypeConstruction(Bookmarks) |
55 | 55 | ||
56 | void clear_Bookmarks (iBookmarks *); | 56 | void clear_Bookmarks (iBookmarks *); |
57 | void load_Bookmarks (iBookmarks *, const char *dirPath); | 57 | void load_Bookmarks (iBookmarks *, const char *dirPath); |
58 | void save_Bookmarks (const iBookmarks *, const char *dirPath); | 58 | uint32_t add_Bookmarks (iBookmarks *, const iString *url, const iString *title, |
59 | 59 | const iString *tags, iChar icon); | |
60 | iBool remove_Bookmarks (iBookmarks *, uint32_t id); | ||
61 | iBookmark * get_Bookmarks (iBookmarks *, uint32_t id); | ||
60 | void fetchRemote_Bookmarks (iBookmarks *); | 62 | void fetchRemote_Bookmarks (iBookmarks *); |
61 | void requestFinished_Bookmarks (iBookmarks *, iGmRequest *req); | 63 | void requestFinished_Bookmarks (iBookmarks *, iGmRequest *req); |
64 | iBool updateBookmarkIcon_Bookmarks(iBookmarks *, const iString *url, iChar icon); | ||
62 | 65 | ||
63 | uint32_t add_Bookmarks (iBookmarks *, const iString *url, const iString *title, | 66 | void save_Bookmarks (const iBookmarks *, const char *dirPath); |
64 | const iString *tags, iChar icon); | 67 | uint32_t findUrl_Bookmarks (const iBookmarks *, const iString *url); /* O(n) */ |
65 | iBool remove_Bookmarks (iBookmarks *, uint32_t id); | ||
66 | iBool updateBookmarkIcon_Bookmarks (iBookmarks *, const iString *url, iChar icon); | ||
67 | iBookmark * get_Bookmarks (iBookmarks *, uint32_t id); | ||
68 | uint32_t findUrl_Bookmarks (const iBookmarks *, const iString *url); /* O(n) */ | ||
69 | 68 | ||
70 | typedef iBool (*iBookmarksFilterFunc) (void *context, const iBookmark *); | 69 | typedef iBool (*iBookmarksFilterFunc) (void *context, const iBookmark *); |
71 | typedef int (*iBookmarksCompareFunc)(const iBookmark **, const iBookmark **); | 70 | typedef int (*iBookmarksCompareFunc)(const iBookmark **, const iBookmark **); |
72 | 71 | ||
73 | iBool filterTagsRegExp_Bookmarks (void *regExp, const iBookmark *); | 72 | iBool filterTagsRegExp_Bookmarks (void *regExp, const iBookmark *); |
74 | 73 | ||
75 | /** | 74 | /** |
76 | * Lists all or a subset of the bookmarks in a sorted array of Bookmark pointers. | 75 | * Lists all or a subset of the bookmarks in a sorted array of Bookmark pointers. |