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.

29 lines
1.1 KiB

  1. //====== Copyright 1996-2013, Valve Corporation, All rights reserved. =======
  2. //
  3. // Purpose: interface to allow apps to temporarily prevent steam from updating
  4. //
  5. //=============================================================================
  6. #ifndef ISTEAMAPPDISABLEUPDATE_H
  7. #define ISTEAMAPPDISABLEUPDATE_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. //-----------------------------------------------------------------------------
  12. // Purpose: Interface to allow an app to temporarily prevent steam from updating
  13. //-----------------------------------------------------------------------------
  14. class ISteamAppDisableUpdate
  15. {
  16. public:
  17. /// Set amount of time that steam will be blocked from updating the app.
  18. /// Pass zero to indicate that it safe to update again. Note that your
  19. /// timeout value may be clamped, as a safety precaution to prevent
  20. /// a bug from putting an app into a wedge state.
  21. virtual void SetAppUpdateDisabledSecondsRemaining( uint32 nSeconds ) = 0;
  22. };
  23. #define STEAMAPPDISABLEUPDATE_INTERFACE_VERSION "SteamAppDisableUpdate001"
  24. #endif // ISTEAMCONTROLLER_H