]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/lib/urllib.qh
Work around the need to include net_linked.qh from sv_model.qc (temporary hack for...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / lib / urllib.qh
index 6f196785177dc6e1617cdf5b09d2c7b5e6a80ee6..00523a84f137adb1e9d1a393d7da07008070bfa7 100644 (file)
@@ -1,7 +1,4 @@
-#ifndef URLLIB_H
-#define URLLIB_H
-
-#include "../common/util.qh"
+#pragma once
 
 // URI handles
 const int URI_GET_DISCARD = 0;
@@ -18,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);
@@ -31,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