21 lines
279 B
C++
21 lines
279 B
C++
#ifdef __APPLE__
|
|
|
|
#include <sys/sysctl.h>
|
|
#include <string>
|
|
#include "os.h"
|
|
|
|
uint64_t get_meminfo() {
|
|
uint64_t mem = 0;
|
|
size_t size = sizeof(mem);
|
|
|
|
sysctlbyname("hw.memsize", &mem, &size, nullptr, 0);
|
|
|
|
return mem;
|
|
}
|
|
|
|
std::string get_nowplaying() {
|
|
return "";
|
|
}
|
|
|
|
#endif
|