X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Flib%2Furllib.qh;h=8918ca0a2a695df6ade44e96df9837b271adc3a4;hb=5cb9126b0ebd2e7ed0ad3a0222603cb99e7594c5;hp=00523a84f137adb1e9d1a393d7da07008070bfa7;hpb=eac60648c4017e495060dd3ba9e50ac4bad5000a;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/lib/urllib.qh b/qcsrc/lib/urllib.qh index 00523a84f..8918ca0a2 100644 --- a/qcsrc/lib/urllib.qh +++ b/qcsrc/lib/urllib.qh @@ -17,14 +17,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 void url_single_fopen(string url, float mode, url_ready_func rdy, entity pass); +ERASEABLE void url_fclose(entity e); +ERASEABLE string url_fgets(entity e); +ERASEABLE void url_fputs(entity e, string s); // returns true if handled +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 void url_multi_fopen(string url, float mode, url_ready_func rdy, entity pass);