Showing the changes to interface/src/scripting/PlatformInfoScriptingInterface.cpp (1 of 9 files). Show all
Unified · Split
| @@ -167,7 +167,9 @@ bool PlatformInfoScriptingInterface::isStandalone() { · 166 unmodified lines | ||
| 167 | 167 | int PlatformInfoScriptingInterface::getNumCPUs() { |
| 168 | 168 | return platform::getNumCPUs(); |
| 169 | 169 | } |
| 170 | − | |
| 170 | +int PlatformInfoScriptingInterface::getMasterCPU() { | |
| 171 | + return platform::getMasterCPU(); | |
| 172 | +} | |
| 171 | 173 | QString PlatformInfoScriptingInterface::getCPU(int index) { |
| 172 | 174 | auto desc = platform::getCPU(index); |
| 173 | 175 | return QString(desc.dump().c_str()); |
| @@ -176,7 +178,9 @@ QString PlatformInfoScriptingInterface::getCPU(int index) { · 2 unmodified lines | ||
| 176 | 178 | int PlatformInfoScriptingInterface::getNumGPUs() { |
| 177 | 179 | return platform::getNumGPUs(); |
| 178 | 180 | } |
| 179 | − | |
| 181 | +int PlatformInfoScriptingInterface::getMasterGPU() { | |
| 182 | + return platform::getMasterGPU(); | |
| 183 | +} | |
| 180 | 184 | QString PlatformInfoScriptingInterface::getGPU(int index) { |
| 181 | 185 | auto desc = platform::getGPU(index); |
| 182 | 186 | return QString(desc.dump().c_str()); |
| @@ -185,7 +189,9 @@ QString PlatformInfoScriptingInterface::getGPU(int index) { · 2 unmodified lines | ||
| 185 | 189 | int PlatformInfoScriptingInterface::getNumDisplays() { |
| 186 | 190 | return platform::getNumDisplays(); |
| 187 | 191 | } |
| 188 | − | |
| 192 | +int PlatformInfoScriptingInterface::getMasterDisplay() { | |
| 193 | + return platform::getMasterDisplay(); | |
| 194 | +} | |
| 189 | 195 | QString PlatformInfoScriptingInterface::getDisplay(int index) { |
| 190 | 196 | auto desc = platform::getDisplay(index); |
| 191 | 197 | return QString(desc.dump().c_str()); |