]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sys.h
host: Implement callback for host_framerate instead of checking it every frame
[xonotic/darkplaces.git] / sys.h
diff --git a/sys.h b/sys.h
index e5247d351afabe274f3e1a933b5915b89bc5b199..ee3b777360380cd5376d7e2382fcecce210ea607 100644 (file)
--- a/sys.h
+++ b/sys.h
@@ -22,6 +22,19 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 #ifndef SYS_H
 #define SYS_H
 
+typedef struct sys_s
+{
+       int argc;
+       const char **argv;
+       int selffd;
+       int outfd;
+       int nicelevel;
+       qboolean nicepossible;
+       qboolean isnice;
+} sys_t;
+
+extern sys_t sys;
+
 extern cvar_t sys_usenoclockbutbenchmark;
 
 //
@@ -83,6 +96,9 @@ void Sys_Quit (int returnvalue);
  * profiling to certain areas of the code, such as ingame performance without
  * regard for loading/shutdown performance (-profilegameonly on commandline)
  */
+#ifdef __cplusplus
+extern "C"
+#endif
 void Sys_AllowProfiling (qboolean enable);
 
 typedef struct sys_cleantime_s