diff options
Diffstat (limited to 'darwin/Platform.h')
-rw-r--r-- | darwin/Platform.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/darwin/Platform.h b/darwin/Platform.h index 2a97270a..59c2b9c7 100644 --- a/darwin/Platform.h +++ b/darwin/Platform.h @@ -16,6 +16,7 @@ in the source distribution for its full text. #include "CPUMeter.h" #include "DarwinProcess.h" #include "DiskIOMeter.h" +#include "Generic.h" #include "NetworkIOMeter.h" #include "ProcessLocksScreen.h" #include "SignalsPanel.h" @@ -67,4 +68,12 @@ bool Platform_getNetworkIO(NetworkIOData* data); void Platform_getBattery(double *percent, ACPresence *isOnAC); +static inline void Platform_getHostname(char* buffer, size_t size) { + Generic_Hostname(buffer, size); +} + +static inline void Platform_getRelease(char** string) { + *string = Generic_OSRelease(); +} + #endif |