X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Flib%2Furllib.qh;h=639b5db73e0615f6caa49b1cc494892faf38ab0f;hb=90ac5f4f1f4aa420546283c58953f387b82e33ba;hp=acb4077d6a49422c9f275d0ea37910d4e05d3c9c;hpb=387c8741f204da7abe419adbdbccccaa8110d20d;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/lib/urllib.qh b/qcsrc/lib/urllib.qh index acb4077d6..639b5db73 100644 --- a/qcsrc/lib/urllib.qh +++ b/qcsrc/lib/urllib.qh @@ -7,6 +7,7 @@ const int URI_GET_IPBAN_END = 16; const int URI_GET_CURL = 17; const int URI_GET_CURL_END = 32; const int URI_GET_UPDATENOTIFICATION = 33; +const int URI_GET_TOS = 34; const int URI_GET_URLLIB = 128; const int URI_GET_URLLIB_END = 191; @@ -17,20 +18,20 @@ const float URL_READY_CANREAD = 2; // errors: -1, or negative HTTP status code USING(url_ready_func, void (entity handle, entity pass, float status)); -[[eraseable]] +ERASEABLE void url_single_fopen(string url, float mode, url_ready_func rdy, entity pass); -[[eraseable]] +ERASEABLE void url_fclose(entity e); -[[eraseable]] +ERASEABLE string url_fgets(entity e); -[[eraseable]] +ERASEABLE void url_fputs(entity e, string s); // returns true if handled -[[eraseable]] +ERASEABLE float url_URI_Get_Callback(int id, float status, string data); #define MIN_URL_ID URI_GET_URLLIB #define NUM_URL_ID (URI_GET_URLLIB_END - URI_GET_URLLIB + 1) -[[eraseable]] +ERASEABLE void url_multi_fopen(string url, float mode, url_ready_func rdy, entity pass);