blob: 0428e0a02fca577e06c44e9989b766651b5486dc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab ft=cpp
#pragma once
#include "rgw_common.h"
namespace ceph {
class DNSResolver;
}
class RGWResolver {
DNSResolver *resolver;
public:
~RGWResolver();
RGWResolver();
int resolve_cname(const std::string& hostname, std::string& cname, bool *found);
};
extern void rgw_init_resolver(void);
extern void rgw_shutdown_resolver(void);
extern RGWResolver *rgw_resolver;
|