diff options
| author | Jørgen P. Tjernø <[email protected]> | 2013-12-02 19:31:46 -0800 |
|---|---|---|
| committer | Jørgen P. Tjernø <[email protected]> | 2013-12-02 19:46:31 -0800 |
| commit | f56bb35301836e56582a575a75864392a0177875 (patch) | |
| tree | de61ddd39de3e7df52759711950b4c288592f0dc /sp/src/public/tier0/systeminformation.h | |
| parent | Mark some more files as text. (diff) | |
| download | source-sdk-2013-f56bb35301836e56582a575a75864392a0177875.tar.xz source-sdk-2013-f56bb35301836e56582a575a75864392a0177875.zip | |
Fix line endings. WHAMMY.
Diffstat (limited to 'sp/src/public/tier0/systeminformation.h')
| -rw-r--r-- | sp/src/public/tier0/systeminformation.h | 112 |
1 files changed, 56 insertions, 56 deletions
diff --git a/sp/src/public/tier0/systeminformation.h b/sp/src/public/tier0/systeminformation.h index 91fb6c7c..f9ba59e1 100644 --- a/sp/src/public/tier0/systeminformation.h +++ b/sp/src/public/tier0/systeminformation.h @@ -1,56 +1,56 @@ -//========= Copyright Valve Corporation, All rights reserved. ============//
-//
-// Purpose:
-//
-// $NoKeywords: $
-//
-//=============================================================================//
-
-#ifndef SYSTEMINFORMATION_H
-#define SYSTEMINFORMATION_H
-
-#ifdef _WIN32
- #pragma once
-#endif
-
-#ifndef PLATFORM_INTERFACE
- #define PLATFORM_INTERFACE
-#endif
-
-//
-// Defines a possible outcome of a system call
-//
-enum SYSTEM_CALL_RESULT_t
-{
- SYSCALL_SUCCESS = 0, // System call succeeded
- SYSCALL_FAILED = 1, // System call failed
- SYSCALL_NOPROC = 2, // Failed to find required system procedure
- SYSCALL_NODLL = 3, // Failed to find or load required system module
- SYSCALL_UNSUPPORTED = 4, // System call unsupported on the OS
-};
-
-
-//
-// Information about paged pool memory
-//
-struct PAGED_POOL_INFO_t
-{
- unsigned long numPagesUsed; // Number of Paged Pool pages used
- unsigned long numPagesFree; // Number of Paged Pool pages free
-};
-
-//
-// Plat_GetMemPageSize
-// Returns the size of a memory page in kilobytes.
-//
-PLATFORM_INTERFACE unsigned long Plat_GetMemPageSize();
-
-//
-// Plat_GetPagedPoolInfo
-// Fills in the paged pool info structure if successful.
-//
-PLATFORM_INTERFACE SYSTEM_CALL_RESULT_t Plat_GetPagedPoolInfo( PAGED_POOL_INFO_t *pPPI );
-
-
-
-#endif // #ifndef SYSTEMINFORMATION_H
+//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +// $NoKeywords: $ +// +//=============================================================================// + +#ifndef SYSTEMINFORMATION_H +#define SYSTEMINFORMATION_H + +#ifdef _WIN32 + #pragma once +#endif + +#ifndef PLATFORM_INTERFACE + #define PLATFORM_INTERFACE +#endif + +// +// Defines a possible outcome of a system call +// +enum SYSTEM_CALL_RESULT_t +{ + SYSCALL_SUCCESS = 0, // System call succeeded + SYSCALL_FAILED = 1, // System call failed + SYSCALL_NOPROC = 2, // Failed to find required system procedure + SYSCALL_NODLL = 3, // Failed to find or load required system module + SYSCALL_UNSUPPORTED = 4, // System call unsupported on the OS +}; + + +// +// Information about paged pool memory +// +struct PAGED_POOL_INFO_t +{ + unsigned long numPagesUsed; // Number of Paged Pool pages used + unsigned long numPagesFree; // Number of Paged Pool pages free +}; + +// +// Plat_GetMemPageSize +// Returns the size of a memory page in kilobytes. +// +PLATFORM_INTERFACE unsigned long Plat_GetMemPageSize(); + +// +// Plat_GetPagedPoolInfo +// Fills in the paged pool info structure if successful. +// +PLATFORM_INTERFACE SYSTEM_CALL_RESULT_t Plat_GetPagedPoolInfo( PAGED_POOL_INFO_t *pPPI ); + + + +#endif // #ifndef SYSTEMINFORMATION_H |