From 9f7a9058d3593d09a8fad9cd42b59f8a15873837 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Tue, 11 May 2021 12:56:14 +0300 Subject: Cache GmDocuments in memory Navigation history keeps final GmDocuments in memory for quicker restore when navigating; no need to redo layout. Changed the color escape to Vertical Tab so Carriage Returns can be left in the source, reducing need to normalize spaces. --- src/media.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/media.c') diff --git a/src/media.c b/src/media.c index 1313b7da..2ec2109d 100644 --- a/src/media.c +++ b/src/media.c @@ -261,6 +261,11 @@ void clear_Media(iMedia *d) { clear_PtrArray(&d->downloads); } +size_t memorySize_Media(const iMedia *d) { + /* TODO: Calculate the actual memory use. */ + return 0; +} + iBool setDownloadUrl_Media(iMedia *d, iGmLinkId linkId, const iString *url) { iGmDownload *dl = NULL; iMediaId existing = findLinkDownload_Media(d, linkId); -- cgit v1.2.3