diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-02-26 10:24:09 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-02-26 10:24:09 +0200 |
commit | 91a6225d8508db01574d7da2c013cb30d6a87ec8 (patch) | |
tree | e3bd2c2f24a22c694c1c23aefd5fc531ae108723 /src/media.h | |
parent | 4708a6580e9af65cd15769e87487fdf4456f1e00 (diff) |
DocumentWidget: Inline downloads
Diffstat (limited to 'src/media.h')
-rw-r--r-- | src/media.h | 9 |
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 | ||
49 | void clear_Media (iMedia *); | 49 | void clear_Media (iMedia *); |
50 | iBool setUrl_Media (iMedia *, uint16_t linkId, const iString *url); | 50 | iBool setDownloadUrl_Media (iMedia *, uint16_t linkId, const iString *url); |
51 | iBool setData_Media (iMedia *, uint16_t linkId, const iString *mime, const iBlock *data, int flags); | 51 | iBool setData_Media (iMedia *, uint16_t linkId, const iString *mime, const iBlock *data, int flags); |
52 | 52 | ||
53 | iMediaId findLinkImage_Media (const iMedia *, uint16_t linkId); | 53 | iMediaId findLinkImage_Media (const iMedia *, uint16_t linkId); |
54 | iBool imageInfo_Media (const iMedia *, iMediaId imageId, iGmMediaInfo *info_out); | 54 | iBool imageInfo_Media (const iMedia *, iMediaId imageId, iGmMediaInfo *info_out); |
@@ -61,6 +61,9 @@ iBool audioInfo_Media (const iMedia *, iMediaId audioId, iGmMediaI | |||
61 | iPlayer * audioPlayer_Media (const iMedia *, iMediaId audioId); | 61 | iPlayer * audioPlayer_Media (const iMedia *, iMediaId audioId); |
62 | 62 | ||
63 | iMediaId findLinkDownload_Media (const iMedia *, uint16_t linkId); | 63 | iMediaId findLinkDownload_Media (const iMedia *, uint16_t linkId); |
64 | iBool downloadInfo_Media (const iMedia *, iMediaId downloadId, iGmMediaInfo *info_out); | ||
65 | void downloadStats_Media (const iMedia *, iMediaId downloadId, const iString **path_out, | ||
66 | float *bytesPerSecond_out, iBool *isFinished_out); | ||
64 | 67 | ||
65 | /*----------------------------------------------------------------------------------------------*/ | 68 | /*----------------------------------------------------------------------------------------------*/ |
66 | 69 | ||