Fix for CID:860302
[platform/core/connectivity/net-config.git] / include / wifi-agent.h
old mode 100644 (file)
new mode 100755 (executable)
index b60a6f5..7631cca
@@ -1,7 +1,7 @@
 /*
  * Network Configuration Module
  *
- * Copyright (c) 2012-2013 Samsung Electronics Co., Ltd. All rights reserved.
+ * Copyright (c) 2000 - 2012 Samsung Electronics Co., Ltd. All rights reserved.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -18,7 +18,7 @@
  */
 
 #ifndef __NETCONFIG_WIFI_AGENT_H__
-#define  __NETCONFIG_WIFI_AGENT_H__
+#define __NETCONFIG_WIFI_AGENT_H__
 
 #ifdef __cplusplus
 extern "C" {
@@ -26,27 +26,23 @@ extern "C" {
 
 #include "wifi.h"
 
-#define NETCONFIG_AGENT_FIELD_NAME "Name"
-#define NETCONFIG_AGENT_FIELD_PASSPHRASE "Passphrase"
-#define NETCONFIG_AGENT_FIELD_IDENTITY "Identity"
-
-typedef struct {
-       char *name;
-       char *ssid;
-       char *identity;
-       char *passphrase;
-       char *wpspin;
-       char *username;
-       char *password;
-} NetconfigWifiAgentFields;
-
-gboolean netconfig_agent_register(void);
-gboolean netconfig_agent_unregister(void);
-gboolean netconfig_iface_wifi_set_field(NetconfigWifi *wifi,
-               GHashTable *fields, GError **error);
-gboolean netconfig_iface_wifi_request_input(NetconfigWifi *wifi,
-               gchar *service, GHashTable *fields,
-               DBusGMethodInvocation *context);
+gboolean connman_register_agent(void);
+gboolean connman_unregister_agent(void);
+
+gboolean netconfig_wifi_set_agent_field_for_eap_network(
+               const char *name, const char *identity, const char *passphrase);
+
+gboolean handle_set_field(NetConnmanAgent *connman_agent,
+               GDBusMethodInvocation *context, const gchar *service, GVariant *fields);
+gboolean handle_request_input(NetConnmanAgent *connman_agent,
+               GDBusMethodInvocation *context, const gchar *service, GVariant *fields);
+gboolean handle_report_error(NetConnmanAgent *connman_agent,
+               GDBusMethodInvocation *context,
+               const gchar *service, const gchar *error);
+
+gboolean handle_request_browser(NetConnmanAgent *connman_agent,
+               GDBusMethodInvocation *context,
+               const gchar *service, const gchar *url);
 
 #ifdef __cplusplus
 }