Fix some bugs when testing opensds ansible
[stor4nfv.git] / src / ceph / src / tools / rbd_mirror / service_daemon / Types.h
1 // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
2 // vim: ts=8 sw=2 smarttab
3
4 #ifndef CEPH_RBD_MIRROR_SERVICE_DAEMON_TYPES_H
5 #define CEPH_RBD_MIRROR_SERVICE_DAEMON_TYPES_H
6
7 #include "include/int_types.h"
8 #include <iosfwd>
9 #include <string>
10 #include <boost/variant.hpp>
11
12 namespace rbd {
13 namespace mirror {
14 namespace service_daemon {
15
16 typedef uint64_t CalloutId;
17 const uint64_t CALLOUT_ID_NONE {0};
18
19 enum CalloutLevel {
20   CALLOUT_LEVEL_INFO,
21   CALLOUT_LEVEL_WARNING,
22   CALLOUT_LEVEL_ERROR
23 };
24
25 std::ostream& operator<<(std::ostream& os, const CalloutLevel& callout_level);
26
27 typedef boost::variant<bool, uint64_t, std::string> AttributeValue;
28
29 } // namespace service_daemon
30 } // namespace mirror
31 } // namespace rbd
32
33 #endif // CEPH_RBD_MIRROR_SERVICE_DAEMON_TYPES_H