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.

36 lines
995 B

  1. //================ Copyright (c) 1996-2009 Valve Corporation. All Rights Reserved. =================
  2. //
  3. //
  4. //
  5. //==================================================================================================
  6. #ifndef IVWATCHSERVICE_H
  7. #define IVWATCHSERVICE_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #include "tier1/interface.h"
  12. #define VWATCH_SERVICE_VERSION "VWatchService001"
  13. class IVWatchService
  14. {
  15. public:
  16. // Fire it up.
  17. // pFactoryFn is used to get the filesystem interface.
  18. // It'll run until you call Stop() to make it stop.
  19. // Stop() must be called from another thread.
  20. // If it returns false, it will only do so during startup and that indicates a startup problem.
  21. virtual bool Run( CreateInterfaceFn pFactoryFn ) = 0;
  22. // Note: This can be called from any thread. It will interrupt the service as soon as it can and
  23. // return after the service has exited from its Run() function.
  24. virtual void Stop() = 0;
  25. };
  26. #endif // IVWATCHSERVICE_H