summaryrefslogtreecommitdiff
path: root/src/porting.h
diff options
context:
space:
mode:
authorSfan5 <sfan5@live.de>2014-01-19 14:32:03 +0100
committerSfan5 <sfan5@live.de>2014-01-23 22:27:13 +0100
commitcd7e8372f3c83531afe5d5c2460ecb95540f9d0d (patch)
tree394e065a8c1ac8408e735180ffd9ef9bc5675722 /src/porting.h
parent1b5b6fe6929404ae416ac33c31df7d795d444614 (diff)
downloadminetest-cd7e8372f3c83531afe5d5c2460ecb95540f9d0d.tar.gz
minetest-cd7e8372f3c83531afe5d5c2460ecb95540f9d0d.tar.bz2
minetest-cd7e8372f3c83531afe5d5c2460ecb95540f9d0d.zip
Include system info in the HTTP user agent on Windows
Diffstat (limited to 'src/porting.h')
-rw-r--r--src/porting.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/porting.h b/src/porting.h
index ea7f31b13..7cd4cf031 100644
--- a/src/porting.h
+++ b/src/porting.h
@@ -149,6 +149,12 @@ bool threadBindToProcessor(threadid_t tid, int pnumber);
bool threadSetPriority(threadid_t tid, int prio);
/*
+ Return system information
+ e.g. "Linux/3.12.7 x86_64"
+*/
+std::string get_sysinfo();
+
+/*
Resolution is 10-20ms.
Remember to check for overflows.
Overflow can occur at any value higher than 10000000.