summaryrefslogtreecommitdiff
path: root/src/rgw/rgw_tools.h
blob: 86cbca725449999e01ff4884e6e3138214cd82fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef CEPH_RGW_TOOLS_H
#define CEPH_RGW_TOOLS_H

#include "include/types.h"

#include "rgw_common.h"

class RGWRados;

int rgw_put_system_obj(RGWRados *rgwstore, rgw_bucket& bucket, string& oid, const char *data, size_t size, bool exclusive, map<string, bufferlist> *pattrs = NULL);
int rgw_get_obj(RGWRados *rgwstore, void *ctx, rgw_bucket& bucket, string& key, bufferlist& bl, map<string, bufferlist> *pattrs = NULL);

int rgw_tools_init(CephContext *cct);
void rgw_tools_cleanup();
const char *rgw_find_mime_by_ext(string& ext);

#endif