67 lines
2.0 KiB
C++
67 lines
2.0 KiB
C++
/**
|
|
* @file XNMonitorInterface.h
|
|
* @brief 监控服务器接口定义
|
|
*/
|
|
#pragma once
|
|
|
|
#include "TypeDefine.h"
|
|
#include "XNMonitorServer_global.h"
|
|
#include <cstdint>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
{
|
|
#endif
|
|
// 初始化函数
|
|
int XNMONITORSERVER_EXPORT XN_Initialize(const char *domainId, int domainIdLen, char *errorMsg,
|
|
int errorMsgSize);
|
|
|
|
// 清理函数
|
|
void XNMONITORSERVER_EXPORT XN_Cleanup();
|
|
|
|
// 启动监控系统信息
|
|
int XNMONITORSERVER_EXPORT XN_StartMonitorSystemInfo(char *errorMsg, int errorMsgSize);
|
|
|
|
// 获取系统信息
|
|
int XNMONITORSERVER_EXPORT XN_GetSystemInfo(char *infoMsg, int infoMsgSize);
|
|
|
|
// 获取所有线程信息
|
|
int XNMONITORSERVER_EXPORT XN_GetAllThreadInfo(char *infoMsg, int infoMsgSize);
|
|
|
|
// 停止监控系统信息
|
|
void XNMONITORSERVER_EXPORT XN_StopMonitorSystemInfo();
|
|
|
|
// 启动监控模型信息
|
|
int XNMONITORSERVER_EXPORT XN_StartMonitorModelInfo(char *errorMsg, int errorMsgSize);
|
|
|
|
// 获取模型信息
|
|
int XNMONITORSERVER_EXPORT XN_GetModelInfo(char *infoMsg, int infoMsgSize);
|
|
|
|
// 停止监控模型信息
|
|
void XNMONITORSERVER_EXPORT XN_StopMonitorModelInfo();
|
|
|
|
// // 主题管理接口
|
|
// XNDDSErrorCode XN_RegisterPublisher(const char *topicName, void **dataWriter);
|
|
// XNDDSErrorCode XN_UnregisterPublisher(const char *topicName);
|
|
|
|
// // 数据写入接口
|
|
// XNDDSErrorCode XN_WriteData(void *dataWriter, const void *data, size_t dataSize);
|
|
|
|
// // 订阅回调函数类型
|
|
// typedef void (*XNDataCallback)(const void *data, size_t dataSize, void *userData);
|
|
|
|
// // 订阅接口
|
|
// XNDDSErrorCode XN_RegisterSubscriber(const char *topicName, XNDataCallback callback,
|
|
// void *userData);
|
|
// XNDDSErrorCode XN_UnregisterSubscriber(const char *topicName);
|
|
|
|
// // 运行时数据接口
|
|
// XNDDSErrorCode XN_GetRuntimeData(const char *name, XNRuntimeData *data);
|
|
// XNDDSErrorCode XN_SetRuntimeData(const char *name, const XNRuntimeData *data);
|
|
|
|
// 错误信息获取
|
|
//const char *MONITOR_EXPORT XN_GetLastError();
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif |