#define NETCONFIG_DEL_PORTAL_NOTI "del_portal_noti"
struct netconfig_headed_plugin_t {
- void (*pop_device_picker) (void);
- gboolean (*send_notification_to_net_popup) (const char *, const char *);
- int (*send_message_to_net_popup) (const char *, const char *, const char *, const char *);
- int (*send_restriction_to_net_popup) (const char *, const char *, const char *);
- void (*set_system_event) (int, int, int);
- void (*pop_wifi_connected_poppup) (const char *);
+ void(*pop_device_picker) (void);
+ gboolean(*send_notification_to_net_popup) (const char *, const char *);
+ int(*send_message_to_net_popup) (const char *, const char *, const char *, const char *);
+ int(*send_restriction_to_net_popup) (const char *, const char *, const char *);
+ void(*set_system_event) (int, int, int);
+ void(*pop_wifi_connected_poppup) (const char *);
};
typedef enum {
gboolean handle_set_bgscan(Wifi *wifi, GDBusMethodInvocation *context, guint scan_mode);
gboolean handle_resume_bgscan(Wifi *wifi, GDBusMethodInvocation *context);
gboolean handle_pause_bgscan(Wifi *wifi, GDBusMethodInvocation *context);
+gboolean handle_get_autoscan(Wifi *wifi, GDBusMethodInvocation *context);
+gboolean handle_get_autoscanmode(Wifi *wifi, GDBusMethodInvocation *context);
+
+
#ifdef __cplusplus
</method>
<method name="PauseBgscan">
</method>
+ <method name="GetAutoscan">
+ <arg type="b" name="autoscan" direction="out"/>
+ </method>
+ <method name="GetAutoscanmode">
+ <arg type="u" name="autoscanmode" direction="out"/>
+ </method>
<method name="RequestSpecificScan">
<arg type="s" name="SSID" direction="in"/>
</method>
Name: net-config
Summary: TIZEN Network Configuration service
-Version: 1.1.100
+Version: 1.1.101
Release: 2
Group: System/Network
License: Apache-2.0
return TRUE;
}
+gboolean handle_get_autoscan(Wifi *wifi, GDBusMethodInvocation *context)
+{
+
+ gboolean autoscan = 0;
+
+ autoscan = netconfig_wifi_is_bgscan_paused();
+
+ wifi_complete_get_autoscan(wifi, context, autoscan);
+ return TRUE;
+}
+
+gboolean handle_get_autoscanmode(Wifi *wifi, GDBusMethodInvocation *context)
+{
+ guint autoscanmode = 0;
+
+ autoscanmode = __netconfig_wifi_bgscan_get_mode();
+
+ wifi_complete_get_autoscanmode(wifi, context, autoscanmode);
+ return TRUE;
+}
+
g_signal_connect(wifi_object, "handle-pause-bgscan",
G_CALLBACK(handle_pause_bgscan), NULL);
+ /*Auto Scan Mode */
+ g_signal_connect(wifi_object, "handle-get-autoscan",
+ G_CALLBACK(handle_get_autoscan), NULL);
+ g_signal_connect(wifi_object, "handle-get-autoscanmode",
+ G_CALLBACK(handle_get_autoscanmode), NULL);
+
/* Passpoint */
g_signal_connect(wifi_object, "handle-set-passpoint",
G_CALLBACK(handle_set_passpoint), NULL);