Files
3FS/src/core/service/CoreService.cc
2025-02-27 21:53:53 +08:00

15 lines
553 B
C++

#include "CoreService.h"
#include "core/service/ops/Include.h"
#include "core/utils/runOp.h"
#define DEFINE_SERDE_SERVICE_METHOD_FULL(svc, name, Name, id, reqtype, rsptype) \
CoTryTask<rsptype> svc##Service::name(serde::CallContext &ctx, const reqtype &req) { \
Name##Operation op(std::move(req)); \
CO_INVOKE_OP_INFO(op, ctx.peer()); \
}
namespace hf3fs::core {
#include "fbs/core/service/CoreServiceDef.h"
} // namespace hf3fs::core