summaryrefslogtreecommitdiffstats
path: root/src/rgw/rgw_resolve.h
blob: 6e00aaa63c456ce1d39b9bf32db31ab4d36abee9 (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
25
26
27
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab

#ifndef CEPH_RGW_RESOLVE_H
#define CEPH_RGW_RESOLVE_H

#include "rgw_common.h"

namespace ceph {
  class DNSResolver;
}

class RGWResolver {
  DNSResolver *resolver;

public:
  ~RGWResolver();
  RGWResolver();
  int resolve_cname(const string& hostname, string& cname, bool *found);
};


extern void rgw_init_resolver(void);
extern void rgw_shutdown_resolver(void);
extern RGWResolver *rgw_resolver;

#endif