Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.4 KiB

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================//
  6. #ifndef VMPI_TOOLS_SHARED_H
  7. #define VMPI_TOOLS_SHARED_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. // Packet IDs.
  12. // Be sure to register new ones with VMPI_REGISTER_SUBPACKET_ID.
  13. #define VMPI_SUBPACKETID_DIRECTORIES 0 // qdir directories.
  14. #define VMPI_SUBPACKETID_DBINFO 1 // MySQL database info.
  15. #define VMPI_SUBPACKETID_CRASH 3 // A worker saying it crashed.
  16. #define VMPI_SUBPACKETID_MULTICAST_ADDR 4 // Filesystem multicast address.
  17. class CDBInfo;
  18. class CIPAddr;
  19. // Send/receive the qdir info.
  20. void SendQDirInfo();
  21. void RecvQDirInfo();
  22. void SendDBInfo( const CDBInfo *pInfo, unsigned long jobPrimaryID );
  23. void RecvDBInfo( CDBInfo *pInfo, unsigned long *pJobPrimaryID );
  24. void SendMulticastIP( const CIPAddr *pAddr );
  25. void RecvMulticastIP( CIPAddr *pAddr );
  26. void VMPI_HandleCrash( const char *pMessage, uint uCode, void *pvExceptionInfo, bool bAssert );
  27. // Call this from an exception handler (set by SetUnhandledExceptionHandler).
  28. // uCode = ExceptionInfo->ExceptionRecord->ExceptionCode.
  29. // pvExceptionInfo = ExceptionInfo
  30. void VMPI_ExceptionFilter( unsigned long uCode, void *pvExceptionInfo );
  31. void HandleMPIDisconnect( int procID, const char *pReason );
  32. #endif // VMPI_TOOLS_SHARED_H