Darin Petkov | 50308cd | 2011-06-01 18:25:07 -0700 | [diff] [blame] | 1 | // 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 Petkov | d1b715b | 2011-06-02 21:21:22 -0700 | [diff] [blame] | 8 | #include <string> |
| 9 | |
Darin Petkov | 50308cd | 2011-06-01 18:25:07 -0700 | [diff] [blame] | 10 | namespace shill { |
| 11 | |
| 12 | // These are the functions that a DHCP proxy and listener must support. |
| 13 | class DHCPProxyInterface { |
| 14 | public: |
| 15 | virtual ~DHCPProxyInterface() {} |
Darin Petkov | d1b715b | 2011-06-02 21:21:22 -0700 | [diff] [blame] | 16 | |
| 17 | virtual void DoRebind(const std::string &interface) = 0; |
Darin Petkov | 98dd6a0 | 2011-06-10 15:12:57 -0700 | [diff] [blame] | 18 | virtual void DoRelease(const std::string &interface) = 0; |
Darin Petkov | 50308cd | 2011-06-01 18:25:07 -0700 | [diff] [blame] | 19 | }; |
| 20 | |
| 21 | class DHCPListenerInterface { |
| 22 | public: |
| 23 | virtual ~DHCPListenerInterface() {} |
| 24 | }; |
| 25 | |
| 26 | } // namespace shill |
| 27 | |
| 28 | #endif // SHILL_DHCP_PROXY_INTERFACE_ |