X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fcommon%2Furllib.qh;h=6353c33fef643404c63b2dd16824c9bf9ae0a5ad;hp=f92178b2f6f6a6569b72af048fbba23811c0e69f;hb=059f7f64d7c7bc3d80340fbeae6e9e2b1ee7126b;hpb=30cd3220d0370aa10dfb62eeb2ee3145d56b1c68 diff --git a/qcsrc/common/urllib.qh b/qcsrc/common/urllib.qh index f92178b2f6..6353c33fef 100644 --- a/qcsrc/common/urllib.qh +++ b/qcsrc/common/urllib.qh @@ -1,7 +1,7 @@ -float URL_READY_ERROR = -1; -float URL_READY_CLOSED = 0; -float URL_READY_CANWRITE = 1; -float URL_READY_CANREAD = 2; +const float URL_READY_ERROR = -1; +const float URL_READY_CLOSED = 0; +const float URL_READY_CANWRITE = 1; +const float URL_READY_CANREAD = 2; // errors: -1, or negative HTTP status code typedef void(entity handle, entity pass, float status) url_ready_func; @@ -12,7 +12,7 @@ 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 +#define MIN_URL_ID URI_GET_URLLIB +#define NUM_URL_ID (URI_GET_URLLIB_END - URI_GET_URLLIB + 1) void url_multi_fopen(string url, float mode, url_ready_func rdy, entity pass);