initial code repo
[stor4nfv.git] / src / ceph / src / include / rados / rados_types.h
diff --git a/src/ceph/src/include/rados/rados_types.h b/src/ceph/src/include/rados/rados_types.h
new file mode 100644 (file)
index 0000000..5156b75
--- /dev/null
@@ -0,0 +1,26 @@
+#ifndef CEPH_RADOS_TYPES_H
+#define CEPH_RADOS_TYPES_H
+
+#include <stdint.h>
+
+/**
+ * @struct obj_watch_t
+ * One item from list_watchers
+ */
+struct obj_watch_t {
+  char addr[256];
+  int64_t watcher_id;
+  uint64_t cookie;
+  uint32_t timeout_seconds;
+}; 
+
+/**
+ * @defines
+ *
+ * Pass as nspace argument to rados_ioctx_set_namespace()
+ * before calling rados_nobjects_list_open() to return
+ * all objects in all namespaces.
+ */
+#define        LIBRADOS_ALL_NSPACES "\001"
+
+#endif