]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
librbd: introduce TypeTraits in librbd/image
authorDongsheng Yang <dongsheng.yang@easystack.cn>
Mon, 6 Feb 2017 11:24:41 +0000 (19:24 +0800)
committerDongsheng Yang <dongsheng.yang@easystack.cn>
Tue, 21 Feb 2017 11:17:26 +0000 (19:17 +0800)
Signed-off-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
src/librbd/image/TypeTraits.h [new file with mode: 0644]

diff --git a/src/librbd/image/TypeTraits.h b/src/librbd/image/TypeTraits.h
new file mode 100644 (file)
index 0000000..17d84fc
--- /dev/null
@@ -0,0 +1,20 @@
+// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
+// vim: ts=8 sw=2 smarttab
+
+#ifndef CEPH_LIBRBD_IMAGE_TYPE_TRAITS_H
+#define CEPH_LIBRBD_IMAGE_TYPE_TRAITS_H
+
+class ContextWQ;
+
+namespace librbd {
+namespace image {
+
+template <typename ImageCtxT>
+struct TypeTraits {
+  typedef ::ContextWQ ContextWQ;
+};
+
+} // namespace image
+} // namespace librbd
+
+#endif // CEPH_LIBRBD_IMAGE_TYPE_TRAITS_H