3 * Copyright (c) 2012 Samsung Electronics Co., Ltd.
5 * Licensed under the Apache License, Version 2.0 (the License);
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
18 #ifndef __MOBILEAP_COMMON_H__
19 #define __MOBILEAP_COMMON_H__
24 #include "mobileap_softap.h"
25 #include <tethering-server-stub.h>
27 gint _slist_find_station_by_interface(gconstpointer a, gconstpointer b);
28 gint _slist_find_station_by_mac(gconstpointer a, gconstpointer b);
29 gint _slist_find_station_by_ip_addr(gconstpointer a, gconstpointer b);
31 void _send_dbus_station_info(const char *member,
32 mobile_ap_station_info_t *info);
33 void _update_station_count(int count);
34 int _add_station_info(mobile_ap_station_info_t *info);
35 int _remove_station_info(gconstpointer data, GCompareFunc func);
36 int _remove_station_info_all(mobile_ap_type_e type);
37 int _get_station_info(gconstpointer data, GCompareFunc func,
38 mobile_ap_station_info_t **si);
39 int _get_station_count(gconstpointer data, GCompareFunc func, int *count);
40 GVariant *_station_info_foreach(void);
41 int _add_interface_routing(const char *interface, const in_addr_t gateway);
42 int _del_interface_routing(const char *interface, const in_addr_t gateway);
43 int _add_routing_rule(const char *interface);
44 int _del_routing_rule(const char *interface);
45 int _flush_ip_address(const char *interface);
46 int _execute_command(const char *cmd);
47 int _get_tethering_type_from_ip(const char *ip, mobile_ap_type_e *type);
48 Tethering *_get_tethering_obj(void);
49 #endif /* __MOBILEAP_COMMON_H__ */