1//
2// Copyright (C) 2011 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 SHILL_SUPPLICANT_SUPPLICANT_PROCESS_PROXY_INTERFACE_H_
18#define SHILL_SUPPLICANT_SUPPLICANT_PROCESS_PROXY_INTERFACE_H_
19
20#include <string>
21
22#include "shill/key_value_store.h"
23
24namespace shill {
25
26// SupplicantProcessProxyInterface declares only the subset of
27// fi::w1::wpa_supplicant1_proxy that is actually used by WiFi.
28class SupplicantProcessProxyInterface {
29 public:
30  virtual ~SupplicantProcessProxyInterface() {}
31  virtual bool CreateInterface(const KeyValueStore& args,
32                               std::string* rpc_identifier) = 0;
33  virtual bool GetInterface(const std::string& ifname,
34                            std::string* rpc_identifier) = 0;
35  virtual bool RemoveInterface(const std::string& rpc_identifier) = 0;
36  virtual bool SetDebugLevel(const std::string& level) = 0;
37  virtual bool GetDebugLevel(std::string* level) = 0;
38  virtual bool ExpectDisconnect() = 0;
39};
40
41}  // namespace shill
42
43#endif  // SHILL_SUPPLICANT_SUPPLICANT_PROCESS_PROXY_INTERFACE_H_
44