MCPcopy Create free account
hub / github.com/OpenSteam001/OpenSteamTool / emitInterface

Method emitInterface

tools/ipc_codegen/ipc_codegen.cpp:891–897  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

889 }
890
891 void emitInterface(const Interface& iface) {
892 out_ << "namespace " << iface.name << " {\n"
893 << "inline constexpr EIPCInterface kInterface = EIPCInterface::" << iface.name << ";\n\n";
894 for (const auto& method : iface.methods) emitReq(iface, method);
895 for (const auto& method : iface.methods) emitResp(method);
896 out_ << "} // namespace " << iface.name << "\n\n";
897 }
898
899 void emitReq(const Interface& iface, const Method& method) {
900 const std::vector<Field> fields = fieldsFor(method, Dir::In, false);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected