]>
Commit | Line | Data |
---|---|---|
1e59de90 TL |
1 | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- |
2 | // vim: ts=8 sw=2 smarttab ft=cpp | |
3 | ||
4 | #pragma once | |
5 | ||
6 | #include <boost/container/flat_map.hpp> | |
7 | #include <boost/container/flat_set.hpp> | |
8 | ||
9 | #include "rgw_datalog.h" | |
10 | ||
11 | namespace bc = boost::container; | |
12 | ||
13 | namespace ceph { class Formatter; } | |
14 | class JSONObj; | |
15 | ||
16 | class RGWCoroutine; | |
17 | class RGWHTTPManager; | |
18 | class RGWRESTConn; | |
19 | ||
20 | struct rgw_data_notify_entry; | |
21 | ||
22 | // json encoder and decoder for notify v1 API | |
23 | struct rgw_data_notify_v1_encoder { | |
24 | const bc::flat_map<int, bc::flat_set<rgw_data_notify_entry>>& shards; | |
25 | }; | |
26 | void encode_json(const char *name, const rgw_data_notify_v1_encoder& e, | |
27 | ceph::Formatter *f); | |
28 | struct rgw_data_notify_v1_decoder { | |
29 | bc::flat_map<int, bc::flat_set<rgw_data_notify_entry>>& shards; | |
30 | }; | |
31 | void decode_json_obj(rgw_data_notify_v1_decoder& d, JSONObj *obj); |