From eda45fcd34189e6844babde1ebc60c083b1b09da Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Wed, 27 Jan 2021 21:28:25 +0200 Subject: Added preference for maximum cache size Rather than simply limiting each tab's cache to 50 most recent URLs, there is now a user-configurable maximum size. If more content is cached, the oldest/largest responses will be removed from memory. The default maximum cache size is 10 MB. IssueID #109 --- src/app.h | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'src/app.h') diff --git a/src/app.h b/src/app.h index 0e8351aa..efaf0a3e 100644 --- a/src/app.h +++ b/src/app.h @@ -61,20 +61,20 @@ void refresh_App (void); iBool isRefreshPending_App (void); uint32_t elapsedSinceLastTicker_App (void); /* milliseconds */ -const iPrefs * prefs_App (void); -iBool forceSoftwareRender_App(void); -enum iColorTheme colorTheme_App (void); -const iString * schemeProxy_App (iRangecc scheme); -iBool willUseProxy_App (const iRangecc scheme); - -iMimeHooks * mimeHooks_App (void); iGmCerts * certs_App (void); iVisited * visited_App (void); iBookmarks * bookmarks_App (void); +iMimeHooks * mimeHooks_App (void); iDocumentWidget * document_App (void); iObjectList * listDocuments_App (void); -iDocumentWidget * document_Command (const char *cmd); iDocumentWidget * newTab_App (const iDocumentWidget *duplicateOf, iBool switchToNew); +void trimCache_App (void); + +const iPrefs * prefs_App (void); +iBool forceSoftwareRender_App(void); +enum iColorTheme colorTheme_App (void); +const iString * schemeProxy_App (iRangecc scheme); +iBool willUseProxy_App (const iRangecc scheme); typedef void (*iTickerFunc)(iAny *); @@ -91,5 +91,7 @@ iLocalDef void postCommandString_App(const iString *command) { } } +iDocumentWidget * document_Command (const char *cmd); + void openInDefaultBrowser_App (const iString *url); void revealPath_App (const iString *path); -- cgit v1.2.3