X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Furllib.qh;h=f92178b2f6f6a6569b72af048fbba23811c0e69f;hb=5ac1995c6edfa82c85d812dcb69112dd0988b1c0;hp=edbca89140c3b857b780d90d328cd7b2de677c66;hpb=39a641683a4a586718ab53343415b3ff33d8831c;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/urllib.qh b/qcsrc/common/urllib.qh index edbca8914..f92178b2f 100644 --- a/qcsrc/common/urllib.qh +++ b/qcsrc/common/urllib.qh @@ -5,10 +5,14 @@ float URL_READY_CANREAD = 2; // errors: -1, or negative HTTP status code typedef void(entity handle, entity pass, float status) url_ready_func; -void url_fopen(string url, float mode, entity pass, url_ready_func rdy); -void url_fclose(entity e, entity pass, url_ready_func rdy); +void url_single_fopen(string url, float mode, url_ready_func rdy, entity pass); +void url_fclose(entity e); string url_fgets(entity e); void url_fputs(entity e, string s); // returns true if handled float url_URI_Get_Callback(float id, float status, string data); +#define MIN_URL_ID 128 +#define NUM_URL_ID 64 + +void url_multi_fopen(string url, float mode, url_ready_func rdy, entity pass);