]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: add missing include 69768/head
authorMax Kellermann <max.kellermann@ionos.com>
Thu, 25 Jun 2026 19:34:27 +0000 (21:34 +0200)
committerMax Kellermann <max.kellermann@ionos.com>
Fri, 26 Jun 2026 10:28:45 +0000 (12:28 +0200)
Signed-off-by: Max Kellermann <max.kellermann@ionos.com>
src/rgw/rgw_cors.h

index 9b4fd0ee7ecb0b6acc5d118fe405eec228090e83..c39f3cbb5777a1d9a91770b6662e9f9b17b985ec 100644 (file)
@@ -18,6 +18,7 @@
 #include <map>
 #include <string>
 #include <include/types.h>
+#include "include/encoding.h" // for WRITE_CLASS_ENCODER()
 #include "include/str_list.h"
 
 #define RGW_CORS_GET    0x1
@@ -35,6 +36,8 @@
 
 #define CORS_MAX_AGE_INVALID ((uint32_t)-1)
 
+namespace ceph { class Formatter; }
+
 class RGWCORSRule
 {
 protected:
@@ -90,7 +93,7 @@ public:
   void format_exp_headers(std::string& s);
   void erase_origin_if_present(std::string& origin, bool *rule_empty);
   void dump_origins();
-  void dump(Formatter *f) const;
+  void dump(ceph::Formatter *f) const;
   bool is_header_allowed(const char *hdr, size_t len);
   bool matches_method(const char *req_meth);
   bool matches_preflight_headers(const char *req_hdrs);
@@ -118,7 +121,7 @@ class RGWCORSConfiguration
     decode(rules, bl);
     DECODE_FINISH(bl);
   }
-  void dump(Formatter *f) const;
+  void dump(ceph::Formatter *f) const;
   std::list<RGWCORSRule>& get_rules() {
     return rules;
   }