Quake-III-Arena

Quake III Arena GPL Source Release
Log | Files | Refs

l_log.h (1532B)


      1 /*
      2 ===========================================================================
      3 Copyright (C) 1999-2005 Id Software, Inc.
      4 
      5 This file is part of Quake III Arena source code.
      6 
      7 Quake III Arena source code is free software; you can redistribute it
      8 and/or modify it under the terms of the GNU General Public License as
      9 published by the Free Software Foundation; either version 2 of the License,
     10 or (at your option) any later version.
     11 
     12 Quake III Arena source code is distributed in the hope that it will be
     13 useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
     14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     15 GNU General Public License for more details.
     16 
     17 You should have received a copy of the GNU General Public License
     18 along with Foobar; if not, write to the Free Software
     19 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
     20 ===========================================================================
     21 */
     22 
     23 //open a log file
     24 void Log_Open(char *filename);
     25 //close the current log file
     26 void Log_Close(void);
     27 //close log file if present
     28 void Log_Shutdown(void);
     29 //print on stdout and write to the current opened log file
     30 void Log_Print(char *fmt, ...);
     31 //write to the current opened log file
     32 void Log_Write(char *fmt, ...);
     33 //write to the current opened log file with a time stamp
     34 void Log_WriteTimeStamped(char *fmt, ...);
     35 //returns the log file structure
     36 FILE *Log_FileStruct(void);
     37 //flush log file
     38 void Log_Flush(void);
     39 
     40 #ifdef WINBSPC
     41 void WinBSPCPrint(char *str);
     42 #endif //WINBSPC