]>
git.proxmox.com Git - ceph.git/blob - ceph/src/rgw/rgw_tools.h
1 // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
2 // vim: ts=8 sw=2 smarttab
4 #ifndef CEPH_RGW_TOOLS_H
5 #define CEPH_RGW_TOOLS_H
9 #include "include/types.h"
10 #include "common/ceph_time.h"
11 #include "rgw_common.h"
15 struct RGWObjVersionTracker
;
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
,
23 rgw_cache_entry_info
*cache_info
= NULL
);
24 int rgw_delete_system_obj(RGWRados
*rgwstore
, const rgw_pool
& pool
, const string
& oid
,
25 RGWObjVersionTracker
*objv_tracker
);
27 int rgw_tools_init(CephContext
*cct
);
28 void rgw_tools_cleanup();
29 const char *rgw_find_mime_by_ext(string
& ext
);