Skip to content

Commit 0efba18

Browse files
authored
Merge pull request #2025 from hioa-cs/v0.13.x
v0.13.x into master
2 parents 1850d74 + cc87322 commit 0efba18

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+2836
-661
lines changed

api/fs/common.hpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121

2222
#include <memory>
2323
#include <string>
24+
#include <pmr>
2425
#include <vector>
2526
#include "path.hpp"
2627
#include <common>
@@ -35,12 +36,12 @@ namespace fs {
3536
/**
3637
* @brief Shared vector used as a buffer within the filesystem subsystem
3738
*/
38-
using buffer_t = std::shared_ptr<std::vector<uint8_t>>;
39+
using buffer_t = os::mem::buf_ptr;
3940

4041
/** Construct a shared vector **/
4142
template <typename... Args>
4243
buffer_t construct_buffer(Args&&... args) {
43-
return std::make_shared<std::vector<uint8_t>> (std::forward<Args> (args)...);
44+
return std::make_shared<os::mem::buffer> (std::forward<Args> (args)...);
4445
}
4546

4647
/** Container types **/

api/hw/block_device.hpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
#include <cstdint>
2323
#include <delegate>
2424
#include <memory>
25+
#include <pmr>
2526
#include <vector>
2627

2728
namespace hw {
@@ -32,7 +33,7 @@ namespace hw {
3233
class Block_device {
3334
public:
3435
using block_t = uint64_t;
35-
using buffer_t = std::shared_ptr<std::vector<uint8_t>>;
36+
using buffer_t = os::mem::buf_ptr;
3637
using on_read_func = delegate<void(buffer_t)>;
3738
using on_write_func = delegate<void(bool error)>;
3839

@@ -149,7 +150,7 @@ class Block_device {
149150
* This functionality is not enabled by default, nor always supported
150151
**/
151152
virtual void write(block_t blk, buffer_t, on_write_func) = 0;
152-
153+
153154
virtual bool write_sync(block_t blk, buffer_t) = 0;
154155

155156
/**

api/net/botan/tls_server.hpp

+12
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,18 @@ class Server : public Botan::TLS::Callbacks, public net::Stream
5555
m_transport->on_read(bs, {this, &Server::tls_read});
5656
this->m_on_read = cb;
5757
}
58+
void on_data(DataCallback cb) override {
59+
// FIXME
60+
throw std::runtime_error("on_data not implemented on botan::server");
61+
}
62+
size_t next_size() override {
63+
// FIXME
64+
throw std::runtime_error("next_size not implemented on botan::server");
65+
}
66+
buffer_t read_next() override {
67+
// FIXME
68+
throw std::runtime_error("read_next not implemented on botan::server");
69+
}
5870
void on_write(WriteCallback cb) override {
5971
this->m_on_write = cb;
6072
}

0 commit comments

Comments
 (0)