]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/lib/urllib.qh
Merge branch 'terencehill/eraseable_functions'
[xonotic/xonotic-data.pk3dir.git] / qcsrc / lib / urllib.qh
index e4b8a8f27312f5d096817262abb6e1908363a057..acb4077d6a49422c9f275d0ea37910d4e05d3c9c 100644 (file)
@@ -1,5 +1,4 @@
-#ifndef URLLIB_H
-#define URLLIB_H
+#pragma once
 
 // URI handles
 const int URI_GET_DISCARD = 0;
@@ -16,17 +15,22 @@ 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));
 
+[[eraseable]]
 void url_single_fopen(string url, float mode, url_ready_func rdy, entity pass);
+[[eraseable]]
 void url_fclose(entity e);
+[[eraseable]]
 string url_fgets(entity e);
+[[eraseable]]
 void url_fputs(entity e, string s);
 
 // returns true if handled
+[[eraseable]]
 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)
 
+[[eraseable]]
 void url_multi_fopen(string url, float mode, url_ready_func rdy, entity pass);
-#endif