]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/common/urllib.qh
Merge branch 'master' into terencehill/directmenu_options
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / urllib.qh
1 float URL_READY_ERROR    = -1;
2 float URL_READY_CLOSED   =  0;
3 float URL_READY_CANWRITE =  1;
4 float URL_READY_CANREAD  =  2;
5 // errors: -1, or negative HTTP status code
6 typedef void(entity handle, entity pass, float status) url_ready_func;
7
8 void url_single_fopen(string url, float mode, url_ready_func rdy, entity pass);
9 void url_fclose(entity e);
10 string url_fgets(entity e);
11 void url_fputs(entity e, string s);
12
13 // returns true if handled
14 float url_URI_Get_Callback(float id, float status, string data);
15 #define MIN_URL_ID URI_GET_URLLIB
16 #define NUM_URL_ID (URI_GET_URLLIB_END - URI_GET_URLLIB + 1)
17
18 void url_multi_fopen(string url, float mode, url_ready_func rdy, entity pass);