summaryrefslogtreecommitdiff
path: root/src/media.h
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-02-26 10:24:09 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-02-26 10:24:09 +0200
commit91a6225d8508db01574d7da2c013cb30d6a87ec8 (patch)
treee3bd2c2f24a22c694c1c23aefd5fc531ae108723 /src/media.h
parent4708a6580e9af65cd15769e87487fdf4456f1e00 (diff)
DocumentWidget: Inline downloads
Diffstat (limited to 'src/media.h')
-rw-r--r--src/media.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/media.h b/src/media.h
index ebead352..ece60630 100644
--- a/src/media.h
+++ b/src/media.h
@@ -46,9 +46,9 @@ enum iMediaFlags {
46 partialData_MediaFlag = iBit(2), 46 partialData_MediaFlag = iBit(2),
47}; 47};
48 48
49void clear_Media (iMedia *); 49void clear_Media (iMedia *);
50iBool setUrl_Media (iMedia *, uint16_t linkId, const iString *url); 50iBool setDownloadUrl_Media (iMedia *, uint16_t linkId, const iString *url);
51iBool setData_Media (iMedia *, uint16_t linkId, const iString *mime, const iBlock *data, int flags); 51iBool setData_Media (iMedia *, uint16_t linkId, const iString *mime, const iBlock *data, int flags);
52 52
53iMediaId findLinkImage_Media (const iMedia *, uint16_t linkId); 53iMediaId findLinkImage_Media (const iMedia *, uint16_t linkId);
54iBool imageInfo_Media (const iMedia *, iMediaId imageId, iGmMediaInfo *info_out); 54iBool imageInfo_Media (const iMedia *, iMediaId imageId, iGmMediaInfo *info_out);
@@ -61,6 +61,9 @@ iBool audioInfo_Media (const iMedia *, iMediaId audioId, iGmMediaI
61iPlayer * audioPlayer_Media (const iMedia *, iMediaId audioId); 61iPlayer * audioPlayer_Media (const iMedia *, iMediaId audioId);
62 62
63iMediaId findLinkDownload_Media (const iMedia *, uint16_t linkId); 63iMediaId findLinkDownload_Media (const iMedia *, uint16_t linkId);
64iBool downloadInfo_Media (const iMedia *, iMediaId downloadId, iGmMediaInfo *info_out);
65void downloadStats_Media (const iMedia *, iMediaId downloadId, const iString **path_out,
66 float *bytesPerSecond_out, iBool *isFinished_out);
64 67
65/*----------------------------------------------------------------------------------------------*/ 68/*----------------------------------------------------------------------------------------------*/
66 69