summaryrefslogtreecommitdiffstats
path: root/src/include/health.h
diff options
context:
space:
mode:
authorAdam C. Emerson <aemerson@redhat.com>2019-03-29 02:03:57 +0100
committerAdam C. Emerson <aemerson@redhat.com>2019-03-29 15:30:37 +0100
commit1069bc461baaf4b12d2e3a927dd9730da15e88e9 (patch)
tree393c806d87f1a57f205ec9a3244e8d5521aac1af /src/include/health.h
parentinclude: Update interval_set.h to work without using namespace (diff)
downloadceph-1069bc461baaf4b12d2e3a927dd9730da15e88e9.tar.xz
ceph-1069bc461baaf4b12d2e3a927dd9730da15e88e9.zip
include: Update health.h to work without using namespace
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
Diffstat (limited to 'src/include/health.h')
-rw-r--r--src/include/health.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/include/health.h b/src/include/health.h
index 5c00225ee93..515ddb552c4 100644
--- a/src/include/health.h
+++ b/src/include/health.h
@@ -15,12 +15,12 @@ enum health_status_t {
HEALTH_OK = 2,
};
-inline void encode(health_status_t hs, bufferlist& bl) {
+inline void encode(health_status_t hs, ceph::buffer::list& bl) {
using ceph::encode;
uint8_t v = hs;
encode(v, bl);
}
-inline void decode(health_status_t& hs, bufferlist::const_iterator& p) {
+inline void decode(health_status_t& hs, ceph::buffer::list::const_iterator& p) {
using ceph::decode;
uint8_t v;
decode(v, p);
@@ -32,21 +32,21 @@ struct denc_traits<health_status_t> {
static constexpr bool featured = false;
static constexpr bool bounded = true;
static constexpr bool need_contiguous = false;
- static void bound_encode(const bufferptr& v, size_t& p, uint64_t f=0) {
+ static void bound_encode(const ceph::buffer::ptr& v, size_t& p, uint64_t f=0) {
p++;
}
static void encode(const health_status_t& v,
- buffer::list::contiguous_appender& p,
+ ceph::buffer::list::contiguous_appender& p,
uint64_t f=0) {
::denc((uint8_t)v, p);
}
- static void decode(health_status_t& v, buffer::ptr::const_iterator& p,
+ static void decode(health_status_t& v, ceph::buffer::ptr::const_iterator& p,
uint64_t f=0) {
uint8_t tmp;
::denc(tmp, p);
v = health_status_t(tmp);
}
- static void decode(health_status_t& v, buffer::list::const_iterator& p,
+ static void decode(health_status_t& v, ceph::buffer::list::const_iterator& p,
uint64_t f=0) {
uint8_t tmp;
::denc(tmp, p);