aboutsummaryrefslogtreecommitdiffstats
path: root/src/l2su.h
diff options
context:
space:
mode:
authorLibravatar bigfoot547 <[email protected]>2024-01-03 05:18:11 -0600
committerLibravatar bigfoot547 <[email protected]>2024-01-03 05:18:11 -0600
commitce87d368bd3e9b6c05ed9f6fdbb97580f105bbcf (patch)
tree7b7441d6891aff7080cae3b0b08cd577761a1f1c /src/l2su.h
parentdownloads client jar (diff)
refactor and download asset index
Diffstat (limited to 'src/l2su.h')
-rw-r--r--src/l2su.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/l2su.h b/src/l2su.h
index 1adfc4c..8c77e14 100644
--- a/src/l2su.h
+++ b/src/l2su.h
@@ -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 */