LLDB mainline
include/lldb/Protocol/MCP/Resource.h
Go to the documentation of this file.
1//===----------------------------------------------------------------------===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8
9#ifndef LLDB_PROTOCOL_MCP_RESOURCE_H
10#define LLDB_PROTOCOL_MCP_RESOURCE_H
11
13#include <vector>
14
15namespace lldb_protocol::mcp {
16
18public:
19 ResourceProvider() = default;
20 virtual ~ResourceProvider() = default;
21
22 virtual std::vector<lldb_protocol::mcp::Resource> GetResources() const = 0;
23 virtual llvm::Expected<lldb_protocol::mcp::ReadResourceResult>
24 ReadResource(llvm::StringRef uri) const = 0;
25};
26
27} // namespace lldb_protocol::mcp
28
29#endif
virtual llvm::Expected< lldb_protocol::mcp::ReadResourceResult > ReadResource(llvm::StringRef uri) const =0
virtual std::vector< lldb_protocol::mcp::Resource > GetResources() const =0