diff options
| author | 2024-01-03 05:18:11 -0600 | |
|---|---|---|
| committer | 2024-01-03 05:18:11 -0600 | |
| commit | ce87d368bd3e9b6c05ed9f6fdbb97580f105bbcf (patch) | |
| tree | 7b7441d6891aff7080cae3b0b08cd577761a1f1c /src/l2su.h | |
| parent | downloads client jar (diff) | |
refactor and download asset index
Diffstat (limited to 'src/l2su.h')
| -rw-r--r-- | src/l2su.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -60,6 +60,11 @@ void l2_launcher_download_cleanup(struct l2_dlbuf *buf); extern const curl_write_callback l2_dlcb; CURLcode l2_launcher_download(CURL *cd, const char *url, void **odata, size_t *osize); + +int l2_launcher_should_download(const char *path, const l2_sha1_digest_t *expectdigest, size_t expectsize); +int l2_launcher_check_integrity(FILE *fp, const l2_sha1_digest_t *digest, size_t sz); +int l2_launcher_download_checksummed(const char *url, const char *pathstr, l2_sha1_digest_t *expect_digest, size_t expect_size); + int l2_json_merge_objects(json_t *j1, json_t *j2); /* string substitute utility */ |
