<arg type="s" name="service" direction="in"/>
<arg type="b" name="enable" direction="in"/>
</method>
- <method name="IsEapSupported">
- <arg type="b" name="supported" direction="out"/>
- </method>
<method name="SetEapConfig">
<arg type="o" name="Service" direction="in"/>
<arg type="a{ss}" name="Fields" direction="in"/>
<allow send_destination="net.netconfig" send_interface="net.netconfig.battery" send_member="GetBatteryDnList" />
<allow send_destination="net.netconfig" send_interface="net.netconfig.battery" send_member="GetBatteryWifiList" />
- <check send_destination="net.netconfig" send_interface="net.netconfig.ethernet" send_member="IsEapSupported" privilege="http://tizen.org/privilege/network.get" />
<check send_destination="net.netconfig" send_interface="net.netconfig.ethernet" send_member="EnableEap" privilege="http://tizen.org/privilege/network.set" />
<check send_destination="net.netconfig" send_interface="net.netconfig.ethernet" send_member="SetEapConfig" privilege="http://tizen.org/privilege/network.profile" />
</policy>
return TRUE;
}
-gboolean handle_is_eap_supported(Ethernet *object, GDBusMethodInvocation *invocation)
-{
- g_return_val_if_fail(object != NULL, TRUE);
-
- DBG("handle_is_eap_supported");
- gboolean value = FALSE;
-
- value = g_eap_enabled;
-
- ethernet_complete_is_eap_supported(object, invocation, value);
- return TRUE;
-}
-
gboolean handle_set_eap_config(Ethernet *object, GDBusMethodInvocation *invocation,
const gchar *service, GVariant *fields)
{
/* EAP over Ethernet Service */
g_signal_connect(ethernet_object, "handle-enable-eap",
G_CALLBACK(handle_enable_eap), NULL);
- g_signal_connect(ethernet_object, "handle-is-eap-supported",
- G_CALLBACK(handle_is_eap_supported), NULL);
g_signal_connect(ethernet_object, "handle-set-eap-config",
G_CALLBACK(handle_set_eap_config), NULL);