5 * Copyright (C) 2007-2013 Intel Corporation. All rights reserved.
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as
9 * published by the Free Software Foundation.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
22 #ifndef __CONNMAN_TECHNOLOGY_H
23 #define __CONNMAN_TECHNOLOGY_H
25 #include <connman/service.h>
33 * @title: technology premitives
34 * @short_description: Functions for handling technology details
39 CONNMAN_MULTI_SCAN_SSID = 0x01,
40 CONNMAN_MULTI_SCAN_FREQ,
41 CONNMAN_MULTI_SCAN_SSID_FREQ,
42 } connman_multi_scan_type_e;
45 CONNMAN_SCAN_TYPE_FULL_CHANNEL = 0x00,
46 CONNMAN_SCAN_TYPE_SPECIFIC_AP,
47 CONNMAN_SCAN_TYPE_MULTI_AP,
48 CONNMAN_SCAN_TYPE_WPA_SUPPLICANT,
49 CONNMAN_SCAN_TYPE_UNKNOWN,
50 } connman_scan_type_e;
55 } connman_multi_scan_ap_s;
58 struct connman_technology;
60 int connman_technology_tethering_notify(struct connman_technology *technology,
62 int connman_technology_set_regdom(const char *alpha2);
63 void connman_technology_regdom_notify(struct connman_technology *technology,
66 enum connman_service_type connman_technology_get_type
67 (struct connman_technology *technology);
68 bool connman_technology_get_wifi_tethering(const char **ssid,
70 bool connman_technology_is_tethering_allowed(enum connman_service_type type);
72 struct connman_technology_driver {
74 enum connman_service_type type;
76 int (*probe) (struct connman_technology *technology);
77 void (*remove) (struct connman_technology *technology);
78 void (*add_interface) (struct connman_technology *technology,
79 int index, const char *name,
81 void (*remove_interface) (struct connman_technology *technology,
83 int (*set_tethering) (struct connman_technology *technology,
84 const char *identifier, const char *passphrase,
85 const char *bridge, bool enabled);
86 int (*set_regdom) (struct connman_technology *technology,
90 int connman_technology_driver_register(struct connman_technology_driver *driver);
91 void connman_technology_driver_unregister(struct connman_technology_driver *driver);
93 const char *connman_techonology_get_path(enum connman_service_type type);
94 void __connman_technology_notify_scan_done(const char *ifname, int val);
95 void __connman_technology_append_interfaces(DBusMessageIter *array,
96 enum connman_service_type type, const char *ifname);
97 void __connman_technology_notify_roaming_state(const char *ifname,
98 const char *state, const char *cur_bssid, const char *dst_bssid);
105 #endif /* __CONNMAN_TECHNOLOGY_H */