merge job rusage and pending reason support
This commit is contained in:
parent
30824ae5ea
commit
cb0c7fe9e7
82 changed files with 4280 additions and 2561 deletions
|
|
@ -1,29 +1,22 @@
|
|||
#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);
|
||||
|
||||
#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, 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue