blob: 461ed5397d9f8a38cf19c8669a6613b477c1c444 [file] [log] [blame]
Peter Qiu9b2ecc42015-09-17 14:37:22 -07001//
2// Copyright (C) 2015 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15//
16
17#ifndef APMANAGER_FIREWALL_PROXY_INTERFACE_H_
18#define APMANAGER_FIREWALL_PROXY_INTERFACE_H_
19
20#include <string>
21
22namespace apmanager {
23
24class FirewallProxyInterface {
25 public:
26 virtual ~FirewallProxyInterface() {}
27
28 virtual bool RequestUdpPortAccess(const std::string& interface,
29 uint16_t port) = 0;
30 virtual bool ReleaseUdpPortAccess(const std::string& interface,
31 uint16_t port) = 0;
32};
33
34} // namespace apmanager
35
36#endif // APMANAGER_FIREWALL_PROXY_INTERFACE_H_