summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/bookmarks.h21
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);
53iDeclareType(Bookmarks) 53iDeclareType(Bookmarks)
54iDeclareTypeConstruction(Bookmarks) 54iDeclareTypeConstruction(Bookmarks)
55 55
56void clear_Bookmarks (iBookmarks *); 56void clear_Bookmarks (iBookmarks *);
57void load_Bookmarks (iBookmarks *, const char *dirPath); 57void load_Bookmarks (iBookmarks *, const char *dirPath);
58void save_Bookmarks (const iBookmarks *, const char *dirPath); 58uint32_t add_Bookmarks (iBookmarks *, const iString *url, const iString *title,
59 59 const iString *tags, iChar icon);
60iBool remove_Bookmarks (iBookmarks *, uint32_t id);
61iBookmark * get_Bookmarks (iBookmarks *, uint32_t id);
60void fetchRemote_Bookmarks (iBookmarks *); 62void fetchRemote_Bookmarks (iBookmarks *);
61void requestFinished_Bookmarks (iBookmarks *, iGmRequest *req); 63void requestFinished_Bookmarks (iBookmarks *, iGmRequest *req);
64iBool updateBookmarkIcon_Bookmarks(iBookmarks *, const iString *url, iChar icon);
62 65
63uint32_t add_Bookmarks (iBookmarks *, const iString *url, const iString *title, 66void save_Bookmarks (const iBookmarks *, const char *dirPath);
64 const iString *tags, iChar icon); 67uint32_t findUrl_Bookmarks (const iBookmarks *, const iString *url); /* O(n) */
65iBool remove_Bookmarks (iBookmarks *, uint32_t id);
66iBool updateBookmarkIcon_Bookmarks (iBookmarks *, const iString *url, iChar icon);
67iBookmark * get_Bookmarks (iBookmarks *, uint32_t id);
68uint32_t findUrl_Bookmarks (const iBookmarks *, const iString *url); /* O(n) */
69 68
70typedef iBool (*iBookmarksFilterFunc) (void *context, const iBookmark *); 69typedef iBool (*iBookmarksFilterFunc) (void *context, const iBookmark *);
71typedef int (*iBookmarksCompareFunc)(const iBookmark **, const iBookmark **); 70typedef int (*iBookmarksCompareFunc)(const iBookmark **, const iBookmark **);
72 71
73iBool filterTagsRegExp_Bookmarks (void *regExp, const iBookmark *); 72iBool 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.