2 * Network Configuration Module
4 * Copyright (c) 2000 - 2012 Samsung Electronics Co., Ltd. All rights reserved.
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
10 * http://www.apache.org/licenses/LICENSE-2.0
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
20 #ifndef __NETCONFIG_WIFI_CONFIG_H__
21 #define __NETCONFIG_WIFI_CONFIG_H__
29 // Configuration Field key
30 #define WIFI_CONFIG_NAME "Name"
31 #define WIFI_CONFIG_SSID "SSID"
32 #define WIFI_CONFIG_PASSPHRASE "Passphrase"
33 #define WIFI_CONFIG_SECURITY_TYPE "Security"
34 #define WIFI_CONFIG_FAVORITE "Favorite"
35 #define WIFI_CONFIG_AUTOCONNECT "AutoConnect"
36 #define WIFI_CONFIG_HIDDEN "Hidden"
37 #define WIFI_CONFIG_FAILURE "Failure"
38 #define WIFI_CONFIG_PROXYADDRESS "ProxyAddress"
39 #define WIFI_CONFIG_PROXY_METHOD "Proxy.Method"
40 #define WIFI_CONFIG_PROXY_SERVER "Proxy.Servers"
41 #define WIFI_CONFIG_EAP_ANONYMOUS_IDENTITY "AnonymousIdentity"
42 #define WIFI_CONFIG_EAP_CACERT "CACertFile"
43 #define WIFI_CONFIG_EAP_CLIENTCERT "ClientCertFile"
44 #define WIFI_CONFIG_EAP_PRIVATEKEY "PrivateKeyFile"
45 #define WIFI_CONFIG_EAP_IDENTITY "Identity"
46 #define WIFI_CONFIG_EAP_TYPE "EapType"
47 #define WIFI_CONFIG_EAP_AUTH_TYPE "EapAuthType"
48 #define WIFI_CONFIG_EAP_SUBJECT_MATCH "SubjectMatch"
50 gboolean wifi_config_get_config_id(const gchar *service_profile, gchar **config_id);
51 gboolean wifi_config_remove_configuration(const gchar *config_id);
53 gboolean handle_get_config_ids(Wifi *wifi, GDBusMethodInvocation *context);
54 gboolean handle_load_configuration(Wifi *wifi, GDBusMethodInvocation *context, const gchar *config_id);
55 gboolean handle_save_configuration(Wifi *wifi, GDBusMethodInvocation *context, const gchar *config_id, GVariant *configuration);
56 gboolean handle_load_eap_configuration(Wifi *wifi, GDBusMethodInvocation *context, const gchar *config_id);
57 gboolean handle_save_eap_configuration(Wifi *wifi, GDBusMethodInvocation *context, const gchar *config_id, GVariant *configuration);
58 gboolean handle_remove_configuration(Wifi *wifi, GDBusMethodInvocation *context, const gchar *config_id);
59 gboolean handle_set_config_field(Wifi *wifi, GDBusMethodInvocation *context, const gchar *config_id, const gchar *key, const gchar *value);
60 gboolean handle_get_config_passphrase(Wifi *wifi, GDBusMethodInvocation *context, const gchar *config_id);
66 #endif /* __NETCONFIG_WIFI_CONFIG_H */