Apply changed Dbus methods
[platform/core/api/wifi-mesh.git] / include / mesh_dbus.h
1 /*
2  * Copyright (c) 2012-2013 Samsung Electronics Co., Ltd All Rights Reserved
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 __MESH_DBUS_H__
18 #define __MESH_DBUS_H__
19
20 #include "mesh.h"
21
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25
26 #define MESH_SERVER_NAME "net.mesh"
27 #define MESH_OBJECT_PATH "/net/mesh"
28
29 #define MESH_SERVICE_INTERFACE "net.mesh"
30
31 #define MESH_DBUS_PROXY_TIMEOUT ((9.5 + 2) * 1000) /**< default timeout for GDBus */
32
33 int _mesh_dbus_start(mesh_h m);
34 int _mesh_dbus_stop(mesh_h m);
35
36 int _mesh_enable(mesh_h handle, mesh_event_cb event_handler);
37 int _mesh_disable(mesh_h handle);
38 int _mesh_scan(mesh_h handle);
39 int _mesh_specific_scan(mesh_h handle, const char* ssid, int channel);
40 int _mesh_cancel_scan(mesh_h handle);
41 int _mesh_get_station_info(mesh_h handle, void *station);
42 int _mesh_get_path_info(mesh_h handle, void *mpath_data);
43 int _mesh_enable_mesh(mesh_h handle);
44 int _mesh_disable_mesh(mesh_h handle);
45 int _mesh_set_gate(mesh_h handle, bool stp, bool gate_announce);
46 int _mesh_unset_gate(mesh_h handle);
47 int _mesh_set_softap(mesh_h handle, const char* ssid,
48                 const char* key, const char* mode,
49                 int channel, int visibility,
50                 int max_stations, int security);
51 int _mesh_enable_softap(mesh_h handle);
52 int _mesh_disable_softap(mesh_h handle);
53 int _mesh_is_joined(mesh_h handle, int is_joined);
54 int _mesh_disjoin(mesh_h handle);
55 int _mesh_start_bridge(mesh_h handle, const char* interface, int mode);
56 int _mesh_stop_bridge(mesh_h handle);
57
58 #ifdef __cplusplus
59 }
60 #endif
61
62 #endif /** __MESH_DBUS_H__ */