Make local handle for event loop
[platform/core/api/connection.git] / src / connection_mptcp.c
index ee24e2d..3d44567 100755 (executable)
@@ -30,14 +30,14 @@ EXPORT_API int connection_mptcp_is_supported(connection_h connection, bool* supp
                return CONNECTION_ERROR_INVALID_PARAMETER;
        }
 
-       *supported = _connection_libnet_mptcp_supported();
+       *supported = _connection_libnet_mptcp_supported(connection);
        return CONNECTION_ERROR_NONE;
 }
 
 EXPORT_API int connection_mptcp_enable(connection_h connection, connection_mptcp_enable_e enable)
 {
        // check MPTCP support
-       if (_connection_libnet_mptcp_supported() == FALSE) {
+       if (_connection_libnet_mptcp_supported(connection) == FALSE) {
                CONNECTION_LOG(CONNECTION_ERROR, "MPTCP is not supported");     //LCOV_EXCL_LINE
                return CONNECTION_ERROR_NOT_SUPPORTED;  //LCOV_EXCL_LINE
        }
@@ -53,13 +53,13 @@ EXPORT_API int connection_mptcp_enable(connection_h connection, connection_mptcp
                return CONNECTION_ERROR_INVALID_PARAMETER;      //LCOV_EXCL_LINE
        }
 
-       return _connection_libnet_mptcp_enable(enable);
+       return _connection_libnet_mptcp_enable(connection, enable);
 }
 
 EXPORT_API int connection_mptcp_disable(connection_h connection)
 {
        // check MPTCP support
-       if (_connection_libnet_mptcp_supported() == FALSE) {
+       if (_connection_libnet_mptcp_supported(connection) == FALSE) {
                CONNECTION_LOG(CONNECTION_ERROR, "MPTCP is not supported");     //LCOV_EXCL_LINE
                return CONNECTION_ERROR_NOT_SUPPORTED;  //LCOV_EXCL_LINE
        }
@@ -69,13 +69,13 @@ EXPORT_API int connection_mptcp_disable(connection_h connection)
                return CONNECTION_ERROR_INVALID_PARAMETER;
        }
 
-       return _connection_libnet_mptcp_enable(CONNECTION_MPTCP_DISABLE);
+       return _connection_libnet_mptcp_enable(connection, CONNECTION_MPTCP_DISABLE);
 }
 
 EXPORT_API int connection_mptcp_get_enabled(connection_h connection, connection_mptcp_enable_e* enable)
 {
        // check MPTCP support
-       if (_connection_libnet_mptcp_supported() == FALSE) {
+       if (_connection_libnet_mptcp_supported(connection) == FALSE) {
                CONNECTION_LOG(CONNECTION_ERROR, "MPTCP is not supported");     //LCOV_EXCL_LINE
                return CONNECTION_ERROR_NOT_SUPPORTED;  //LCOV_EXCL_LINE
        }
@@ -90,14 +90,14 @@ EXPORT_API int connection_mptcp_get_enabled(connection_h connection, connection_
                return CONNECTION_ERROR_INVALID_PARAMETER;      //LCOV_EXCL_LINE
        }
 
-       return _connection_libnet_mptcp_get_enabled(enable);
+       return _connection_libnet_mptcp_get_enabled(connection, enable);
 }
 
 
 EXPORT_API int connection_mptcp_set_path_manager(connection_h connection, connection_mptcp_path_manager_e pm)
 {
        // check MPTCP support
-       if (_connection_libnet_mptcp_supported() == FALSE) {
+       if (_connection_libnet_mptcp_supported(connection) == FALSE) {
                CONNECTION_LOG(CONNECTION_ERROR, "MPTCP is not supported");     //LCOV_EXCL_LINE
                return CONNECTION_ERROR_NOT_SUPPORTED;  //LCOV_EXCL_LINE
        }
@@ -107,13 +107,13 @@ EXPORT_API int connection_mptcp_set_path_manager(connection_h connection, connec
                return CONNECTION_ERROR_INVALID_PARAMETER;
        }
 
-       return _connection_libnet_mptcp_set_path_manager(pm);
+       return _connection_libnet_mptcp_set_path_manager(connection, pm);
 }
 
 EXPORT_API int connection_mptcp_get_path_manager(connection_h connection, connection_mptcp_path_manager_e* pm)
 {
        // check MPTCP support
-       if (_connection_libnet_mptcp_supported() == FALSE) {
+       if (_connection_libnet_mptcp_supported(connection) == FALSE) {
                CONNECTION_LOG(CONNECTION_ERROR, "MPTCP is not supported");     //LCOV_EXCL_LINE
                return CONNECTION_ERROR_NOT_SUPPORTED;  //LCOV_EXCL_LINE
        }
@@ -128,14 +128,14 @@ EXPORT_API int connection_mptcp_get_path_manager(connection_h connection, connec
                return CONNECTION_ERROR_INVALID_PARAMETER;
        }
 
-       return _connection_libnet_mptcp_get_path_manager(pm);
+       return _connection_libnet_mptcp_get_path_manager(connection, pm);
 }
 
 
 EXPORT_API int connection_mptcp_set_scheduler(connection_h connection, connection_mptcp_scheduler_e scheduler)
 {
        // check MPTCP support
-       if (_connection_libnet_mptcp_supported() == FALSE) {
+       if (_connection_libnet_mptcp_supported(connection) == FALSE) {
                CONNECTION_LOG(CONNECTION_ERROR, "MPTCP is not supported");     //LCOV_EXCL_LINE
                return CONNECTION_ERROR_NOT_SUPPORTED;  //LCOV_EXCL_LINE
        }
@@ -145,13 +145,13 @@ EXPORT_API int connection_mptcp_set_scheduler(connection_h connection, connectio
                return CONNECTION_ERROR_INVALID_PARAMETER;
        }
 
-       return _connection_libnet_mptcp_set_scheduler(scheduler);
+       return _connection_libnet_mptcp_set_scheduler(connection, scheduler);
 }
 
 EXPORT_API int connection_mptcp_get_scheduler(connection_h connection, connection_mptcp_scheduler_e* scheduler)
 {
        // check MPTCP support
-       if (_connection_libnet_mptcp_supported() == FALSE) {
+       if (_connection_libnet_mptcp_supported(connection) == FALSE) {
                CONNECTION_LOG(CONNECTION_ERROR, "MPTCP is not supported");     //LCOV_EXCL_LINE
                return CONNECTION_ERROR_NOT_SUPPORTED;  //LCOV_EXCL_LINE
        }
@@ -166,7 +166,7 @@ EXPORT_API int connection_mptcp_get_scheduler(connection_h connection, connectio
                return CONNECTION_ERROR_INVALID_PARAMETER;
        }
 
-       return _connection_libnet_mptcp_get_scheduler(scheduler);
+       return _connection_libnet_mptcp_get_scheduler(connection, scheduler);
 }