]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/common/urllib.qh
add urllib (not used yet)
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / urllib.qh
1 float URL_READY_CLOSED   0
2 float URL_READY_CANWRITE 1
3 float URL_READY_CANREAD  2
4 // errors: -1, or negative HTTP status code
5 typedef void(entity handle, entity pass, float status) url_ready_func;
6
7 void url_fopen(string url, float mode, entity pass, url_fopen_ready_func ready);
8 void url_fclose(entity e, entity pass, url_fclose_ready_func ready)
9 string url_fgets(entity e);
10 void url_fputs(entity e, string s);
11
12 // returns true if handled
13 float url_URI_Get_Callback(float id, float status, string data);