2025-05-26 09:04:11 +08:00
|
|
|
#ifndef XN_INTERFACE_GEN_SERVER_H
|
|
|
|
#define XN_INTERFACE_GEN_SERVER_H
|
|
|
|
|
|
|
|
#include "XNInterfaceGenServer_global.h"
|
2025-06-09 11:16:11 +08:00
|
|
|
#include "PublicDefine.h"
|
2025-05-26 09:04:11 +08:00
|
|
|
|
2025-06-09 11:16:11 +08:00
|
|
|
// 全局变量声明
|
2025-06-18 16:01:06 +08:00
|
|
|
extern int g_configrationID;
|
2025-06-09 11:16:11 +08:00
|
|
|
extern std::string g_configName;
|
|
|
|
extern AllInterfaceData g_interfaceData;
|
|
|
|
|
|
|
|
// 步骤函数声明
|
2025-06-18 16:01:06 +08:00
|
|
|
extern "C" XNIGS_EXPORT int
|
|
|
|
XNInterfaceGen_Step1_InitParams(int configrationID, const char *errorMsg, const int errorMsgSize);
|
|
|
|
extern "C" XNIGS_EXPORT int XNInterfaceGen_Step2_GetInterfaceData(const char *errorMsg,
|
|
|
|
const int errorMsgSize);
|
|
|
|
extern "C" XNIGS_EXPORT int XNInterfaceGen_Step3_CreateConfigDir(const char *errorMsg,
|
|
|
|
const int errorMsgSize);
|
|
|
|
extern "C" XNIGS_EXPORT int XNInterfaceGen_Step4_GenerateIDL(const char *errorMsg,
|
|
|
|
const int errorMsgSize);
|
|
|
|
extern "C" XNIGS_EXPORT int XNInterfaceGen_Step5_GenerateFastDDS(const char *errorMsg,
|
|
|
|
const int errorMsgSize);
|
|
|
|
extern "C" XNIGS_EXPORT int XNInterfaceGen_Step6_GenerateDDSInterface(const char *errorMsg,
|
|
|
|
const int errorMsgSize);
|
|
|
|
extern "C" XNIGS_EXPORT int XNInterfaceGen_Step7_GenerateCMakeLists(const char *errorMsg,
|
|
|
|
const int errorMsgSize);
|
|
|
|
extern "C" XNIGS_EXPORT int XNInterfaceGen_Step8_BuildAndInstall(const char *errorMsg,
|
|
|
|
const int errorMsgSize);
|
|
|
|
extern "C" XNIGS_EXPORT int XNInterfaceGen_Step9_SudoLdconfig(const char *errorMsg,
|
|
|
|
const int errorMsgSize);
|
2025-05-26 09:04:11 +08:00
|
|
|
#endif // XN_INTERFACE_GEN_SERVER_H
|