]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- |
2 | // vim: ts=8 sw=2 smarttab | |
3 | ||
4 | #ifndef CEPH_RGW_TOOLS_H | |
5 | #define CEPH_RGW_TOOLS_H | |
6 | ||
7 | #include <string> | |
8 | ||
9 | #include "include/types.h" | |
10 | #include "common/ceph_time.h" | |
11 | #include "rgw_common.h" | |
12 | ||
13 | class RGWRados; | |
14 | class RGWObjectCtx; | |
15 | struct RGWObjVersionTracker; | |
16 | ||
17 | struct obj_version; | |
18 | ||
19 | int rgw_put_system_obj(RGWRados *rgwstore, const rgw_pool& pool, const string& oid, const char *data, size_t size, bool exclusive, | |
20 | RGWObjVersionTracker *objv_tracker, real_time set_mtime, map<string, bufferlist> *pattrs = NULL); | |
21 | int rgw_get_system_obj(RGWRados *rgwstore, RGWObjectCtx& obj_ctx, const rgw_pool& pool, const string& key, bufferlist& bl, | |
22 | RGWObjVersionTracker *objv_tracker, real_time *pmtime, map<string, bufferlist> *pattrs = NULL, | |
b32b8144 FG |
23 | rgw_cache_entry_info *cache_info = NULL, |
24 | boost::optional<obj_version> refresh_version = boost::none); | |
7c673cae FG |
25 | int rgw_delete_system_obj(RGWRados *rgwstore, const rgw_pool& pool, const string& oid, |
26 | RGWObjVersionTracker *objv_tracker); | |
27 | ||
28 | int rgw_tools_init(CephContext *cct); | |
29 | void rgw_tools_cleanup(); | |
30 | const char *rgw_find_mime_by_ext(string& ext); | |
31 | ||
32 | #endif |