29 lines
No EOL
747 B
C
29 lines
No EOL
747 B
C
#ifndef RESOURCE_SYNC_H
|
|
#define RESOURCE_SYNC_H
|
|
|
|
#include "hardware_monitor.h"
|
|
#include "node_information.h"
|
|
#include <stdbool.h>
|
|
|
|
// 资源同步模块结构体
|
|
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, host_node_t** node);
|
|
|
|
#endif // RESOURCE_SYNC_H
|