#ifndef RESOURCE_SYNC_H #define RESOURCE_SYNC_H #include "hardware_monitor.h" #include "node_information.h" #include typedef struct resource_sync resource_sync_t; resource_sync_t* resource_sync_create(void); void resource_sync_destroy(resource_sync_t* sync); bool resource_sync_start(resource_sync_t* sync); void resource_sync_stop(resource_sync_t* sync); bool resource_sync_update(resource_sync_t* sync); void resource_sync_read(resource_sync_t* sync, void* data); bool resource_sync_register_load_index(const char* name, int valtype, char* (*getter_func)(void), bool is_builtin); bool resource_sync_unregister_load_index(const char* name); #endif // RESOURCE_SYNC_H