'buffer::raw' factory methods and similar methods are now
wrapped in the 'v14_2_0' inline namespace for export via the
public librados API.
Fixes: http://tracker.ceph.com/issues/39972
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit
4ac8bc79e7fc128f10b38457c93b092b5c8060ad)
}
};
-raw* create_foreign(temporary_buffer&& buf) {
- return new raw_seastar_foreign_ptr(std::move(buf));
-}
-
class raw_seastar_local_ptr : public raw {
temporary_buffer buf;
public:
}
};
+inline namespace v14_2_0 {
+
+raw* create_foreign(temporary_buffer&& buf) {
+ return new raw_seastar_foreign_ptr(std::move(buf));
+}
+
raw* create(temporary_buffer&& buf) {
return new raw_seastar_local_ptr(std::move(buf));
}
+} // inline namespace v14_2_0
+
// buffer::ptr conversions
ptr::operator seastar::temporary_buffer<char>() &
};
namespace buffer CEPH_BUFFER_API {
+inline namespace v14_2_0 {
+
/*
* exceptions
*/
raw* create_msg(unsigned len, char *buf, XioDispatchHook *m_hook);
#endif
-inline namespace v14_2_0 {
-
/*
* a buffer pointer. references (a subsequence of) a raw buffer.
*/
std::ostream& operator<<(std::ostream& out, const buffer::ptr& bp);
-std::ostream& operator<<(std::ostream& out, const raw &r);
+std::ostream& operator<<(std::ostream& out, const buffer::raw &r);
std::ostream& operator<<(std::ostream& out, const buffer::list& bl);
#include "include/spinlock.h"
namespace ceph::buffer {
+inline namespace v14_2_0 {
+
class raw {
public:
// In the future we might want to have a slab allocator here with few
last_crc_offset.second = std::numeric_limits<size_t>::max();
}
};
+
+} // inline namespace v14_2_0
} // namespace ceph::buffer
#endif // CEPH_BUFFER_RAW_H