Log.h 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. ////////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright 2016 RWS Inc, All Rights Reserved
  4. //
  5. // This program is free software; you can redistribute it and/or modify
  6. // it under the terms of version 2 of the GNU General Public License as published by
  7. // the Free Software Foundation
  8. //
  9. // This program is distributed in the hope that it will be useful,
  10. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. // GNU General Public License for more details.
  13. //
  14. // You should have received a copy of the GNU General Public License along
  15. // with this program; if not, write to the Free Software Foundation, Inc.,
  16. // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  17. //
  18. // log.h
  19. // Project: Postal
  20. //
  21. // History:12/5/97 AJC Started.
  22. ////////////////////////////////////////////////////////////////////////////////
  23. #ifndef LOG_H
  24. #define LOG_H
  25. short OpenLogFile();
  26. short CloseLogFile();
  27. ////////////////////////////////////////////////////////////////////////////////
  28. // WriteTimeStamp()
  29. // Write the network time log
  30. // global variables used: g_GameSettings
  31. ////////////////////////////////////////////////////////////////////////////////
  32. extern
  33. short WriteTimeStamp(char *pszCaller, // Name of calling routine
  34. char *pszCalleeName, // Name of player being sent or sending
  35. unsigned char ucMsgType, // Message type
  36. Net::SEQ seqStart, // Beginning sequent sent/received
  37. long sNum, // Number of seq's sent/received
  38. char bReceived, // a received or a sent message? TRUE if received
  39. U16 u16PackageID = 0); // Uniquely identifiable package id
  40. ////////////////////////////////////////////////////////////////////////////////
  41. // WriteInputData()
  42. // Write the network input data to network sync log
  43. // global variables used: g_GameSettings
  44. ////////////////////////////////////////////////////////////////////////////////
  45. extern short WriteInputData(U32 *input);
  46. #endif //LOG_H
  47. ////////////////////////////////////////////////////////////////////////////////
  48. // EOF
  49. ////////////////////////////////////////////////////////////////////////////////