]> git.proxmox.com Git - ceph.git/blame - ceph/src/rgw/rgw_tools.h
update sources to v12.2.3
[ceph.git] / ceph / src / rgw / rgw_tools.h
CommitLineData
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
13class RGWRados;
14class RGWObjectCtx;
15struct RGWObjVersionTracker;
16
17struct obj_version;
18
19int 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);
21int 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
25int rgw_delete_system_obj(RGWRados *rgwstore, const rgw_pool& pool, const string& oid,
26 RGWObjVersionTracker *objv_tracker);
27
28int rgw_tools_init(CephContext *cct);
29void rgw_tools_cleanup();
30const char *rgw_find_mime_by_ext(string& ext);
31
32#endif