initial code repo
[stor4nfv.git] / src / ceph / src / tools / rbd_mirror / ProgressContext.h
diff --git a/src/ceph/src/tools/rbd_mirror/ProgressContext.h b/src/ceph/src/tools/rbd_mirror/ProgressContext.h
new file mode 100644 (file)
index 0000000..e4430ee
--- /dev/null
@@ -0,0 +1,21 @@
+// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
+// vim: ts=8 sw=2 smarttab
+
+#ifndef RBD_MIRROR_PROGRESS_CONTEXT_H
+#define RBD_MIRROR_PROGRESS_CONTEXT_H
+
+namespace rbd {
+namespace mirror {
+
+class ProgressContext
+{
+public:
+  virtual ~ProgressContext() {}
+  virtual void update_progress(const std::string &description,
+                              bool flush = true) = 0;
+};
+
+} // namespace mirror
+} // namespace rbd
+
+#endif // RBD_MIRROR_PROGRESS_CONTEXT_H