21#ifndef KICAD_API_HANDLER_COMMON_H
22#define KICAD_API_HANDLER_COMMON_H
24#include <google/protobuf/empty.pb.h>
27#include <api/common/commands/base_commands.pb.h>
28#include <api/common/commands/project_commands.pb.h>
31using google::protobuf::Empty;
tl::expected< T, ApiResponseStatus > HANDLER_RESULT
HANDLER_RESULT< Empty > handlePing(const HANDLER_CONTEXT< commands::Ping > &aCtx)
HANDLER_RESULT< types::Box2 > handleGetTextExtents(const HANDLER_CONTEXT< commands::GetTextExtents > &aCtx)
~API_HANDLER_COMMON() override
HANDLER_RESULT< commands::GetTextAsShapesResponse > handleGetTextAsShapes(const HANDLER_CONTEXT< commands::GetTextAsShapes > &aCtx)
HANDLER_RESULT< commands::GetVersionResponse > handleGetVersion(const HANDLER_CONTEXT< commands::GetVersion > &aCtx)
HANDLER_RESULT< commands::NetClassesResponse > handleGetNetClasses(const HANDLER_CONTEXT< commands::GetNetClasses > &aCtx)
HANDLER_RESULT< commands::ExpandTextVariablesResponse > handleExpandTextVariables(const HANDLER_CONTEXT< commands::ExpandTextVariables > &aCtx)