Kun Yi | 91beea6 | 2018-11-26 15:23:14 -0800 | [diff] [blame^] | 1 | #include "handler.hpp" |
| 2 | |
| 3 | namespace blobs |
| 4 | { |
| 5 | |
| 6 | bool BinaryStoreBlobHandler::canHandleBlob(const std::string& path) |
| 7 | { |
| 8 | // TODO: implement |
| 9 | return false; |
| 10 | } |
| 11 | |
| 12 | std::vector<std::string> BinaryStoreBlobHandler::getBlobIds() |
| 13 | { |
| 14 | // TODO: implement |
| 15 | std::vector<std::string> result; |
| 16 | return result; |
| 17 | } |
| 18 | |
| 19 | bool BinaryStoreBlobHandler::deleteBlob(const std::string& path) |
| 20 | { |
| 21 | // TODO: implement |
| 22 | return false; |
| 23 | } |
| 24 | |
| 25 | bool BinaryStoreBlobHandler::stat(const std::string& path, |
| 26 | struct BlobMeta* meta) |
| 27 | { |
| 28 | // TODO: implement |
| 29 | return false; |
| 30 | } |
| 31 | |
| 32 | bool BinaryStoreBlobHandler::open(uint16_t session, uint16_t flags, |
| 33 | const std::string& path) |
| 34 | { |
| 35 | // TODO: implement |
| 36 | return false; |
| 37 | } |
| 38 | |
| 39 | std::vector<uint8_t> BinaryStoreBlobHandler::read(uint16_t session, |
| 40 | uint32_t offset, |
| 41 | uint32_t requestedSize) |
| 42 | { |
| 43 | // TODO: implement |
| 44 | std::vector<uint8_t> result; |
| 45 | return result; |
| 46 | } |
| 47 | |
| 48 | bool BinaryStoreBlobHandler::write(uint16_t session, uint32_t offset, |
| 49 | const std::vector<uint8_t>& data) |
| 50 | { |
| 51 | // TODO: implement |
| 52 | return false; |
| 53 | } |
| 54 | |
| 55 | bool BinaryStoreBlobHandler::writeMeta(uint16_t session, uint32_t offset, |
| 56 | const std::vector<uint8_t>& data) |
| 57 | { |
| 58 | /* Binary store handler doesn't support write meta */ |
| 59 | return false; |
| 60 | } |
| 61 | |
| 62 | bool BinaryStoreBlobHandler::commit(uint16_t session, |
| 63 | const std::vector<uint8_t>& data) |
| 64 | { |
| 65 | // TODO: implement |
| 66 | return false; |
| 67 | } |
| 68 | |
| 69 | bool BinaryStoreBlobHandler::close(uint16_t session) |
| 70 | { |
| 71 | // TODO: implement |
| 72 | return false; |
| 73 | } |
| 74 | |
| 75 | bool BinaryStoreBlobHandler::stat(uint16_t session, struct BlobMeta* meta) |
| 76 | { |
| 77 | // TODO: implement |
| 78 | return false; |
| 79 | } |
| 80 | |
| 81 | bool BinaryStoreBlobHandler::expire(uint16_t session) |
| 82 | { |
| 83 | /* Binary store handler doesn't support expire */ |
| 84 | return false; |
| 85 | } |
| 86 | |
| 87 | } // namespace blobs |