X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=blobdiff_plain;f=console.h;h=4aa3e956018de1f46bb7465a23b71f4f2c95f192;hp=d8b56ed3f639de26abe7dd824e9799a7b4950a0c;hb=c2dcaef8855fc6ce97ce10c544e30d95436b14cd;hpb=ff46d6ff516fda192c5adc55a5c9b82007545bd2 diff --git a/console.h b/console.h index d8b56ed3..4aa3e956 100644 --- a/console.h +++ b/console.h @@ -27,25 +27,26 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. extern int con_totallines; extern int con_backscroll; extern qboolean con_initialized; -extern qbyte *con_chars; + +extern qboolean rcon_redirect; +extern int rcon_redirect_bufferpos; +extern char rcon_redirect_buffer[1400]; void Con_CheckResize (void); -void Con_InitLogging (void); void Con_Init (void); +void Con_Init_Commands (void); void Con_DrawConsole (int lines); void Con_Print(const char *txt); -void Con_Printf(const char *fmt, ...); +void Con_Printf(const char *fmt, ...) DP_FUNC_PRINTF(1); void Con_DPrint(const char *msg); -void Con_DPrintf(const char *fmt, ...); -void Con_SafePrint(const char *msg); -void Con_SafePrintf(const char *fmt, ...); -void Con_LogPrint(const char *logfilename, const char *msg); -void Con_LogPrintf(const char *logfilename, const char *fmt, ...); +void Con_DPrintf(const char *fmt, ...) DP_FUNC_PRINTF(1); void Con_Clear_f (void); void Con_DrawNotify (void); void Con_ClearNotify (void); void Con_ToggleConsole_f (void); +qboolean GetMapList (const char *s, char *completedname, int completednamebufferlength); + // wrapper function to attempt to either complete the command line // or to list possible matches grouped by type // (i.e. will display possible variables, aliases, commands @@ -56,5 +57,16 @@ void Con_CompleteCommandLine(void); // formatted in columns on the console void Con_DisplayList(const char **list); + +// +// log +// +void Log_Init (void); +void Log_Close (void); +void Log_Start (void); +void Log_DestBuffer_Flush (void); // call this once per frame to send out replies to rcon streaming clients + +void Log_Printf(const char *logfilename, const char *fmt, ...) DP_FUNC_PRINTF(2); + #endif