Debian Codegraph @

src/connection.h

raw
1 /*
2 * ConnMan GTK GUI
3 *
4 * Copyright (C) 2015 Intel Corporation. All rights reserved.
5 * Author: Jaakko Hannikainen <[email protected]>
6 *
7 * This program is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, either version 2 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 */
20
21 #ifndef _CONNMAN_GTK_CONNECTION_H
22 #define _CONNMAN_GTK_CONNECTION_H
23
24 enum connection_type {
25 CONNECTION_TYPE_UNKNOWN,
26 CONNECTION_TYPE_ETHERNET,
27 CONNECTION_TYPE_WIRELESS,
28 CONNECTION_TYPE_BLUETOOTH,
29 CONNECTION_TYPE_CELLULAR,
30 CONNECTION_TYPE_P2P,
31 CONNECTION_TYPE_VPN,
32 CONNECTION_TYPE_COUNT
33 };
34
35 enum connection_type connection_type_from_string(const gchar *str);
36 enum connection_type connection_type_from_properties(GVariant *properties);
37 const gchar *translated_tech_name(enum connection_type type);
38 const gchar *mnemonic_tech_name(enum connection_type type);
39
40 #endif /* _CONNMAN_GTK_CONNECTION_H */