X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Furllib.qh;h=d58a0b1aaf7eb4955bf3e87bd6fcf3db036782c5;hb=153e558088db2813f7f7dd5367244b5470f4d425;hp=6353c33fef643404c63b2dd16824c9bf9ae0a5ad;hpb=387861a0bee1121b0869bfaf8cff5b703ffc1ad2;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/urllib.qh b/qcsrc/common/urllib.qh index 6353c33fe..d58a0b1aa 100644 --- a/qcsrc/common/urllib.qh +++ b/qcsrc/common/urllib.qh @@ -1,3 +1,6 @@ +#ifndef URLLIB_H +#define URLLIB_H + const float URL_READY_ERROR = -1; const float URL_READY_CLOSED = 0; const float URL_READY_CANWRITE = 1; @@ -11,8 +14,9 @@ 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); +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) void url_multi_fopen(string url, float mode, url_ready_func rdy, entity pass); +#endif