[bugfix] fixed a linker error when importing the structs
This commit is contained in:
parent
28309edcaf
commit
6035abf102
@ -5,9 +5,5 @@ SET(CMAKE_C_STANDARD_REQUIRED TRUE)
|
|||||||
|
|
||||||
PROJECT(synf-core)
|
PROJECT(synf-core)
|
||||||
|
|
||||||
ADD_EXECUTABLE(main
|
ADD_EXECUTABLE(main source/main.c source/lib.c)
|
||||||
|
|
||||||
source/main.c
|
|
||||||
source/lib.c
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|||||||
@ -31,18 +31,19 @@ void cpu_name();
|
|||||||
void cpu_threads();
|
void cpu_threads();
|
||||||
void cpu_temperature();
|
void cpu_temperature();
|
||||||
void cpu_frequency();
|
void cpu_frequency();
|
||||||
|
|
||||||
void get_total();
|
void get_total();
|
||||||
void get_usage();
|
void get_usage();
|
||||||
|
|
||||||
void mem_size();
|
void mem_size();
|
||||||
void av_mem_size();
|
void av_mem_size();
|
||||||
|
|
||||||
void device_up_time();
|
void device_up_time();
|
||||||
void device_os_version();
|
void device_os_version();
|
||||||
void device_hostname();
|
void device_hostname();
|
||||||
void device_model();
|
void device_model();
|
||||||
|
|
||||||
|
cpu_s *u_cpu ;
|
||||||
|
ram_s *u_ram ;
|
||||||
|
disk_s *u_disk ;
|
||||||
|
device_s *u_device ;
|
||||||
|
|
||||||
#ifdef __gnu_linux__
|
#ifdef __gnu_linux__
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user