X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=console.h;h=4aa3e956018de1f46bb7465a23b71f4f2c95f192;hb=3f94ed2f51053a39ae771fe5b9e494602c37f9b2;hp=1ba74e1eb6bf172cb6c35f6a6020184af4e32ee7;hpb=beba2f9a1752c871a39303e5d559e779fac69271;p=xonotic%2Fdarkplaces.git diff --git a/console.h b/console.h index 1ba74e1e..4aa3e956 100644 --- a/console.h +++ b/console.h @@ -8,7 +8,7 @@ of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. @@ -18,30 +18,35 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +#ifndef CONSOLE_H +#define CONSOLE_H + // // console // extern int con_totallines; extern int con_backscroll; -extern qboolean con_forcedup; // because no entities to refresh extern qboolean con_initialized; -extern byte *con_chars; -extern int con_notifylines; // scan lines to clear for notify lines -void Con_DrawCharacter (int cx, int line, int num); +extern qboolean rcon_redirect; +extern int rcon_redirect_bufferpos; +extern char rcon_redirect_buffer[1400]; void Con_CheckResize (void); void Con_Init (void); -void Con_DrawConsole (int lines, qboolean drawinput); -void Con_Print (char *txt); -void Con_Printf (char *fmt, ...); -void Con_DPrintf (char *fmt, ...); -void Con_SafePrintf (char *fmt, ...); +void Con_Init_Commands (void); +void Con_DrawConsole (int lines); +void Con_Print(const char *txt); +void Con_Printf(const char *fmt, ...) DP_FUNC_PRINTF(1); +void Con_DPrint(const char *msg); +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 @@ -50,5 +55,18 @@ void Con_CompleteCommandLine(void); // Generic libs/util/console.c function to display a list // formatted in columns on the console -void Con_DisplayList(char **list); +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