]>
Commit | Line | Data |
---|---|---|
9f95a23c TL |
1 | #ifndef CEPH_CLS_QUEUE_CLIENT_H |
2 | #define CEPH_CLS_QUEUE_CLIENT_H | |
3 | ||
4 | #include "include/rados/librados.hpp" | |
5 | #include "cls/queue/cls_queue_types.h" | |
6 | #include "cls_queue_ops.h" | |
7 | #include "common/ceph_time.h" | |
8 | ||
20effc67 TL |
9 | void cls_queue_init(librados::ObjectWriteOperation& op, const std::string& queue_name, uint64_t size); |
10 | int cls_queue_get_capacity(librados::IoCtx& io_ctx, const std::string& oid, uint64_t& size); | |
11 | void cls_queue_enqueue(librados::ObjectWriteOperation& op, uint32_t expiration_secs, std::vector<bufferlist> bl_data_vec); | |
12 | int cls_queue_list_entries(librados::IoCtx& io_ctx, const std::string& oid, const std::string& marker, uint32_t max, | |
13 | std::vector<cls_queue_entry>& entries, bool *truncated, std::string& next_marker); | |
14 | void cls_queue_remove_entries(librados::ObjectWriteOperation& op, const std::string& end_marker); | |
9f95a23c | 15 | |
20effc67 | 16 | #endif |