]> git.proxmox.com Git - ceph.git/blame - ceph/src/rgw/rgw_resolve.h
import 15.2.0 Octopus source
[ceph.git] / ceph / src / rgw / rgw_resolve.h
CommitLineData
7c673cae 1// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
9f95a23c 2// vim: ts=8 sw=2 smarttab ft=cpp
7c673cae
FG
3
4#ifndef CEPH_RGW_RESOLVE_H
5#define CEPH_RGW_RESOLVE_H
6
7#include "rgw_common.h"
8
9namespace ceph {
10 class DNSResolver;
11}
12
13class RGWResolver {
14 DNSResolver *resolver;
15
16public:
17 ~RGWResolver();
18 RGWResolver();
19 int resolve_cname(const string& hostname, string& cname, bool *found);
20};
21
22
23extern void rgw_init_resolver(void);
24extern void rgw_shutdown_resolver(void);
25extern RGWResolver *rgw_resolver;
26
27#endif