Revised to reduce the launch delay of mdnsresponder 56/82156/1
authorchleun.moon <chleun.moon@samsung.com>
Mon, 1 Aug 2016 07:55:33 +0000 (16:55 +0900)
committerchleun.moon <chleun.moon@samsung.com>
Mon, 1 Aug 2016 07:56:30 +0000 (16:56 +0900)
Change-Id: I8102fe53ffab4a777a6885380818bf35fb42644c
Signed-off-by: cheoleun <chleun.moon@samsung.com>
interfaces/netconfig-iface-network-state.xml
resources/etc/dbus-1/system.d/net-config.conf
src/network-state.c
src/utils/util.c

index baa583a..d059cfe 100755 (executable)
@@ -24,7 +24,6 @@
                <method name="CheckProfilePrivilege"></method>
                <method name="CheckInternetPrivilege"></method>
                <method name="LaunchMdns"></method>
-               <method name="RefMdns"></method>
                <method name="UnrefMdns"></method>
                <method name="DevicePolicySetWifi">
                        <arg type="i" name="state" direction="in"/>
index 35030f6..50e52e3 100644 (file)
@@ -13,7 +13,6 @@
                <check send_destination="net.netconfig" send_interface="net.netconfig.network" send_member="CheckProfilePrivilege" privilege="http://tizen.org/privilege/network.profile" />
                <check send_destination="net.netconfig" send_interface="net.netconfig.network" send_member="CheckInternetPrivilege" privilege="http://tizen.org/privilege/internet" />
                <allow send_destination="net.netconfig" send_interface="net.netconfig.network" send_member="LaunchMdns"/>
-               <allow send_destination="net.netconfig" send_interface="net.netconfig.network" send_member="RefMdns"/>
                <allow send_destination="net.netconfig" send_interface="net.netconfig.network" send_member="UnrefMdns"/>
 
                <check send_destination="net.netconfig" send_interface="net.netconfig.network_statistics" send_member="GetWifiLastRxBytes" privilege="http://tizen.org/privilege/network.get" />
index 41d9811..c8d7f73 100755 (executable)
@@ -1091,8 +1091,6 @@ void state_object_create_and_init(void)
                                G_CALLBACK(handle_remove_route), NULL);
        g_signal_connect(netconfigstate, "handle-launch-mdns",
                                G_CALLBACK(handle_launch_mdns), NULL);
-       g_signal_connect(netconfigstate, "handle-ref-mdns",
-                               G_CALLBACK(handle_ref_mdns), NULL);
        g_signal_connect(netconfigstate, "handle-unref-mdns",
                                G_CALLBACK(handle_unref_mdns), NULL);
        g_signal_connect(netconfigstate, "handle-device-policy-set-wifi",
index b0c014e..d028cd5 100755 (executable)
@@ -784,16 +784,10 @@ gboolean handle_launch_mdns(Network *object, GDBusMethodInvocation *context)
                return FALSE;
        }
 
-       network_complete_launch_mdns(object, context);
-       return TRUE;
-}
-
-gboolean handle_ref_mdns(Network *object, GDBusMethodInvocation *context)
-{
        mdnsd_ref_count++;
-
        DBG("Ref mdnsresponder daemon. ref count: %d", mdnsd_ref_count);
-       network_complete_ref_mdns(object, context);
+
+       network_complete_launch_mdns(object, context);
        return TRUE;
 }