Fix some bugs when testing opensds ansible
[stor4nfv.git] / src / ceph / src / librbd / managed_lock / Utils.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_LIBRBD_MANAGED_LOCK_UTILS_H
5 #define CEPH_LIBRBD_MANAGED_LOCK_UTILS_H
6
7 #include "include/int_types.h"
8 #include <string>
9
10 namespace librbd {
11 namespace managed_lock {
12 namespace util {
13
14 const std::string &get_watcher_lock_tag();
15
16 bool decode_lock_cookie(const std::string &tag, uint64_t *handle);
17 std::string encode_lock_cookie(uint64_t watch_handle);
18
19 } // namespace util
20 } // namespace managed_lock
21 } // namespace librbd
22
23 #endif // CEPH_LIBRBD_MANAGED_LOCK_UTILS_H