comparison system/System.h @ 170:b23eea68357e

* flesh out StorageAdviser
author Chris Cannam
date Tue, 26 Sep 2006 12:58:12 +0000
parents 04baa690f90d
children 06ad01f3e553
comparison
equal deleted inserted replaced
169:603991c63ff6 170:b23eea68357e
75 enum ProcessStatus { ProcessRunning, ProcessNotRunning, UnknownProcessStatus }; 75 enum ProcessStatus { ProcessRunning, ProcessNotRunning, UnknownProcessStatus };
76 extern ProcessStatus GetProcessStatus(int pid); 76 extern ProcessStatus GetProcessStatus(int pid);
77 77
78 // Return a vague approximation to the number of free megabytes of real memory. 78 // Return a vague approximation to the number of free megabytes of real memory.
79 // Return -1 if unknown. 79 // Return -1 if unknown.
80 extern int GetRealMemoryMBAvailable(); 80 extern void GetRealMemoryMBAvailable(int &available, int &total);
81 81
82 // Return a vague approximation to the number of free megabytes of disc space 82 // Return a vague approximation to the number of free megabytes of disc space
83 // on the partition containing the given path. Return -1 if unknown. 83 // on the partition containing the given path. Return -1 if unknown.
84 extern int GetDiscSpaceMBAvailable(const char *path); 84 extern int GetDiscSpaceMBAvailable(const char *path);
85 85