X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;ds=inline;f=qcsrc%2Flib%2Furllib.qh;h=00523a84f137adb1e9d1a393d7da07008070bfa7;hb=c58f64ef151dab8679008c4afa1737f69b948ba0;hp=918504ff8b64fdc44a168b7e1aae026fa5d83124;hpb=d3e642e032c1e9e62fc5400c14627c54e37e4ae0;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/lib/urllib.qh b/qcsrc/lib/urllib.qh index 918504ff8..00523a84f 100644 --- a/qcsrc/lib/urllib.qh +++ b/qcsrc/lib/urllib.qh @@ -1,5 +1,4 @@ -#ifndef URLLIB_H -#define URLLIB_H +#pragma once // URI handles const int URI_GET_DISCARD = 0; @@ -16,7 +15,7 @@ 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; +USING(url_ready_func, void (entity handle, entity pass, float status)); void url_single_fopen(string url, float mode, url_ready_func rdy, entity pass); void url_fclose(entity e); @@ -29,4 +28,3 @@ float url_URI_Get_Callback(int id, float status, string data); #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