]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - host.h
Merge MR 'Set groundentity when sv_gameplayfix_downtracesupportsongroundflag detects...
[xonotic/darkplaces.git] / host.h
diff --git a/host.h b/host.h
index 4d0ee33941153041f00cb1135a4211523219ac30..26465423839b5523830ae599f25370180699f1c6 100644 (file)
--- a/host.h
+++ b/host.h
@@ -6,6 +6,8 @@
 #include "qdefs.h"
 #include "cmd.h"
 
+struct cmd_state_s;
+
 typedef enum host_state_e
 {
        host_shutdown,
@@ -14,7 +16,7 @@ typedef enum host_state_e
        host_active
 } host_state_t;
 
-typedef struct host_s
+typedef struct host_static_s
 {
        jmp_buf abortframe;
        int state;
@@ -29,22 +31,23 @@ typedef struct host_s
        struct
        {
                void (*ConnectLocal)(void);
+               void (*Disconnect)(qbool, const char *, ... );
+               void (*ToggleMenu)(void);
+               qbool (*CL_Intermission)(void); // Quake compatibility
+               void (*CL_SendCvar)(struct cmd_state_s *);
+               void (*SV_SendCvar)(struct cmd_state_s *);
+               void (*SV_Shutdown)(void);
        } hook;
-} host_t;
+} host_static_t;
 
-extern host_t host;
+extern host_static_t host;
 
-void Host_InitCommands(void);
 void Host_Main(void);
-double Host_Frame(double time);
 void Host_Shutdown(void);
-void Host_StartVideo(void);
 void Host_Error(const char *error, ...) DP_FUNC_PRINTF(1) DP_FUNC_NORETURN;
 void Host_LockSession(void);
 void Host_UnlockSession(void);
-void Host_AbortCurrentFrame(void);
-void Host_SaveConfig(void);
-void Host_LoadConfig_f(cmd_state_t *cmd);
-void Host_NoOperation_f(cmd_state_t *cmd);
+void Host_AbortCurrentFrame(void) DP_FUNC_NORETURN;
+void Host_SaveConfig(const char *file);
 
 #endif