mirror of
https://gitee.com/openharmony/third_party_rust_cxx
synced 2024-11-23 15:19:44 +00:00
cbc2a1040d
This reverts commit ced948046e
.
27 lines
480 B
C++
27 lines
480 B
C++
#pragma once
|
|
#include "rust/cxx.h"
|
|
#include <memory>
|
|
|
|
namespace org {
|
|
namespace blobstore {
|
|
|
|
struct MultiBuf;
|
|
struct BlobMetadata;
|
|
|
|
class BlobstoreClient {
|
|
public:
|
|
BlobstoreClient();
|
|
uint64_t put(MultiBuf &buf) const;
|
|
void tag(uint64_t blobid, rust::Str tag) const;
|
|
BlobMetadata metadata(uint64_t blobid) const;
|
|
|
|
private:
|
|
class impl;
|
|
std::shared_ptr<impl> impl;
|
|
};
|
|
|
|
std::unique_ptr<BlobstoreClient> new_blobstore_client();
|
|
|
|
} // namespace blobstore
|
|
} // namespace org
|