2 * Copyright (c) 2017 Samsung Electronics Co., Ltd All Rights Reserved
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
16 #ifndef __WMESH_MGR_H__
17 #define __WMESH_MGR_H__
22 class Wmesh:public GDbus {
27 error_e SpecificScan(char *mesh_id, int channel);
28 error_e CancelScan(void);
29 error_e GetFoundMeshNetworks(void);
30 error_e GetConnectedPeers(void);
31 error_e EnableMesh(void);
32 error_e DisableMesh(void);
33 error_e IsMeshEnabled(void);
34 error_e IsJoined(void);
35 error_e GetJoinedMeshNetwork(void);
36 error_e SetGate(bool gate_announce, int hwmp_root_mode, bool stp);
37 error_e UnsetGate(void);
38 error_e SetSoftap(char *ssid, char *passphrase, int channel,
39 int visibility, int max_stations, int security);
40 error_e GetSoftap(void);
41 error_e EnableSoftap(void);
42 error_e DisableSoftap(void);
43 error_e IsSoftapEnabled(void);
44 error_e CreateMeshNetwork(char *mesh_id, int channel, int security,
46 error_e ConnectMeshNetwork(char *mesh_id, int channel, int security,
48 error_e DisconnectMeshNetwork(char *mesh_id, int channel, int security);
49 error_e ForgetMeshNetwork(char *mesh_id, int channel, int security);
50 error_e SetInterfaces(char *mesh, char *gate, char *softap);
51 error_e GetStationInfo(int sta_type);
52 error_e GetMpathInfo(void);
53 error_e GetMeshconfInfo(void);
57 #endif /* __WMESH_MGR_H__ */