1 // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
2 // vim: ts=8 sw=2 smarttab
4 #ifndef LIBRBD_API_IMAGE_H
5 #define LIBRBD_API_IMAGE_H
7 #include "librbd/Types.h"
12 namespace librados { struct IoCtx; }
20 template <typename ImageCtxT = librbd::ImageCtx>
22 typedef std::pair<int64_t, std::string> PoolSpec;
23 typedef std::set<std::string> ImageIds;
24 typedef std::map<PoolSpec, ImageIds> PoolImageIds;
25 typedef std::map<std::string, std::string> ImageNameToIds;
27 static int list_images(librados::IoCtx& io_ctx,
28 ImageNameToIds *images);
30 static int list_children(ImageCtxT *ictx, const ParentSpec &parent_spec,
31 PoolImageIds *pool_image_ids);
38 extern template class librbd::api::Image<librbd::ImageCtx>;
40 #endif // LIBRBD_API_IMAGE_H