From e6da8b077882d2190c021b91869e3a8892cc0b4e Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Sun, 17 Jan 2021 08:07:20 +0200 Subject: Cleanup --- src/bookmarks.h | 21 ++++++++++----------- 1 file 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); iDeclareType(Bookmarks) iDeclareTypeConstruction(Bookmarks) -void clear_Bookmarks (iBookmarks *); -void load_Bookmarks (iBookmarks *, const char *dirPath); -void save_Bookmarks (const iBookmarks *, const char *dirPath); - +void clear_Bookmarks (iBookmarks *); +void load_Bookmarks (iBookmarks *, const char *dirPath); +uint32_t add_Bookmarks (iBookmarks *, const iString *url, const iString *title, + const iString *tags, iChar icon); +iBool remove_Bookmarks (iBookmarks *, uint32_t id); +iBookmark * get_Bookmarks (iBookmarks *, uint32_t id); void fetchRemote_Bookmarks (iBookmarks *); void requestFinished_Bookmarks (iBookmarks *, iGmRequest *req); +iBool updateBookmarkIcon_Bookmarks(iBookmarks *, const iString *url, iChar icon); -uint32_t add_Bookmarks (iBookmarks *, const iString *url, const iString *title, - const iString *tags, iChar icon); -iBool remove_Bookmarks (iBookmarks *, uint32_t id); -iBool updateBookmarkIcon_Bookmarks (iBookmarks *, const iString *url, iChar icon); -iBookmark * get_Bookmarks (iBookmarks *, uint32_t id); -uint32_t findUrl_Bookmarks (const iBookmarks *, const iString *url); /* O(n) */ +void save_Bookmarks (const iBookmarks *, const char *dirPath); +uint32_t findUrl_Bookmarks (const iBookmarks *, const iString *url); /* O(n) */ typedef iBool (*iBookmarksFilterFunc) (void *context, const iBookmark *); typedef int (*iBookmarksCompareFunc)(const iBookmark **, const iBookmark **); -iBool filterTagsRegExp_Bookmarks (void *regExp, const iBookmark *); +iBool filterTagsRegExp_Bookmarks (void *regExp, const iBookmark *); /** * Lists all or a subset of the bookmarks in a sorted array of Bookmark pointers. -- cgit v1.2.3