| 1 |
#ifndef AWS_COMMON_PRIVATE_SYSTEM_INFO_PRIV_H |
| 2 |
#define AWS_COMMON_PRIVATE_SYSTEM_INFO_PRIV_H |
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
#include <aws/common/byte_buf.h> |
| 8 |
#include <aws/common/ref_count.h> |
| 9 |
#include <aws/common/string.h> |
| 10 |
#include <aws/common/system_info.h> |
| 11 |
|
| 12 |
struct aws_system_environment { |
| 13 |
struct aws_allocator *allocator; |
| 14 |
struct aws_ref_count ref_count; |
| 15 |
struct aws_byte_buf virtualization_vendor; |
| 16 |
struct aws_byte_buf product_name; |
| 17 |
enum aws_platform_os os; |
| 18 |
size_t cpu_count; |
| 19 |
size_t cpu_group_count; |
| 20 |
void *impl; |
| 21 |
}; |
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
int aws_system_environment_load_platform_impl(struct aws_system_environment *env); |
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
|
| 34 |
|
| 35 |
void aws_system_environment_destroy_platform_impl(struct aws_system_environment *env); |
| 36 |
|
| 37 |
#endif |