blob: 275a91b8c81c5c7e6d5db486649982a6478db70b [file] [log] [blame]
Darin Petkov50308cd2011-06-01 18:25:07 -07001// Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef SHILL_DHCP_PROXY_INTERFACE_
6#define SHILL_DHCP_PROXY_INTERFACE_
7
Darin Petkovd1b715b2011-06-02 21:21:22 -07008#include <string>
9
Darin Petkov50308cd2011-06-01 18:25:07 -070010namespace shill {
11
12// These are the functions that a DHCP proxy and listener must support.
13class DHCPProxyInterface {
14 public:
15 virtual ~DHCPProxyInterface() {}
Darin Petkovd1b715b2011-06-02 21:21:22 -070016
17 virtual void DoRebind(const std::string &interface) = 0;
Darin Petkov98dd6a02011-06-10 15:12:57 -070018 virtual void DoRelease(const std::string &interface) = 0;
Darin Petkov50308cd2011-06-01 18:25:07 -070019};
20
21class DHCPListenerInterface {
22 public:
23 virtual ~DHCPListenerInterface() {}
24};
25
26} // namespace shill
27
28#endif // SHILL_DHCP_PROXY_INTERFACE_