1 // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
2 // vim: ts=8 sw=2 smarttab
4 #ifndef CEPH_LIBRBD_MANAGED_LOCK_UTILS_H
5 #define CEPH_LIBRBD_MANAGED_LOCK_UTILS_H
7 #include "include/int_types.h"
11 namespace managed_lock {
14 const std::string &get_watcher_lock_tag();
16 bool decode_lock_cookie(const std::string &tag, uint64_t *handle);
17 std::string encode_lock_cookie(uint64_t watch_handle);
20 } // namespace managed_lock
23 #endif // CEPH_LIBRBD_MANAGED_LOCK_UTILS_H