mirror of
https://github.com/oneclickvirt/basics.git
synced 2025-10-24 09:03:44 +08:00
v0.0.7 - 更新支持查询GPU信息
This commit is contained in:
15
system/gpu/stat/gpu_darwin.h
Normal file
15
system/gpu/stat/gpu_darwin.h
Normal file
@@ -0,0 +1,15 @@
|
||||
#ifndef __SMC_H__
|
||||
#define __SMC_H__ 1
|
||||
|
||||
#include <IOKit/IOKitLib.h>
|
||||
#include <CoreFoundation/CoreFoundation.h>
|
||||
|
||||
#if (defined __MAC_OS_X_VERSION_MIN_REQUIRED) && (__MAC_OS_X_VERSION_MIN_REQUIRED < 120000)
|
||||
#define kIOMainPortDefault kIOMasterPortDefault
|
||||
#endif
|
||||
|
||||
void *find_properties(io_registry_entry_t, int, CFStringRef, CFStringRef);
|
||||
char **find_devices(char *);
|
||||
int find_utilization(char *, char *);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user