ClientId(uint64_t gid, uint64_t handle) : gid(gid), handle(handle) {}
void encode(bufferlist& bl) const;
- void decode(bufferlist::iterator& it);
+ void decode(bufferlist::const_iterator& it);
void dump(Formatter *f) const;
inline bool is_valid() const {
std::vector<ClientId> timeouts;
void encode(bufferlist& bl) const;
- void decode(bufferlist::iterator& it);
+ void decode(bufferlist::const_iterator& it);
};
template <typename ImageCtxT>
typedef librbd::Watcher Watcher;
};
-} // namespace watcher
-} // namespace librbd
-
std::ostream &operator<<(std::ostream &out,
- const librbd::watcher::ClientId &client);
+ const ClientId &client);
-WRITE_CLASS_ENCODER(librbd::watcher::ClientId);
-WRITE_CLASS_ENCODER(librbd::watcher::NotifyResponse);
+WRITE_CLASS_ENCODER(ClientId);
+WRITE_CLASS_ENCODER(NotifyResponse);
+
+} // namespace watcher
+} // namespace librbd
#endif // CEPH_LIBRBD_WATCHER_TYPES_H