diff options
author | Youngjae Shin <yj99.shin@samsung.com> | 2016-09-12 14:43:43 +0900 |
---|---|---|
committer | Youngjae Shin <yj99.shin@samsung.com> | 2016-09-21 15:28:40 +0900 |
commit | b0cdc87f25d76543bf60bfe03b3786b5ebda463d (patch) | |
tree | ad98e171e5f1a5ab5cc589ae35fca1299561aaf0 | |
parent | 4cf7465ac73c4484a4f3d6812af86d9c36ddcb3f (diff) | |
download | iotcon-b0cdc87f25d76543bf60bfe03b3786b5ebda463d.tar.gz iotcon-b0cdc87f25d76543bf60bfe03b3786b5ebda463d.tar.bz2 iotcon-b0cdc87f25d76543bf60bfe03b3786b5ebda463d.zip |
apply iotcon 0.3.2 changes
modify APIs related to checking interval of remote resource
Change-Id: Ia732ac1bd39a023f6c032445dc04592efe0fe06f
-rw-r--r-- | Tizen.Network.IoTConnectivity/Interop/Interop.IoTConnectivity.Client.cs | 8 | ||||
-rw-r--r-- | Tizen.Network.IoTConnectivity/Tizen.Network.IoTConnectivity/RemoteResource.cs | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/Tizen.Network.IoTConnectivity/Interop/Interop.IoTConnectivity.Client.cs b/Tizen.Network.IoTConnectivity/Interop/Interop.IoTConnectivity.Client.cs index e31ea00..1c7cfa5 100644 --- a/Tizen.Network.IoTConnectivity/Interop/Interop.IoTConnectivity.Client.cs +++ b/Tizen.Network.IoTConnectivity/Interop/Interop.IoTConnectivity.Client.cs @@ -150,11 +150,11 @@ internal static partial class Interop [DllImport(Libraries.IoTCon, EntryPoint = "iotcon_remote_resource_get_cached_representation")] internal static extern int GetCachedRepresentation(IntPtr resource, out IntPtr representation); - [DllImport(Libraries.IoTCon, EntryPoint = "iotcon_remote_resource_get_time_interval")] - internal static extern int GetTimeInterval(out int timeInterval); + [DllImport(Libraries.IoTCon, EntryPoint = "iotcon_remote_resource_get_checking_interval")] + internal static extern int GetTimeInterval(IntPtr resource, out int timeInterval); - [DllImport(Libraries.IoTCon, EntryPoint = "iotcon_remote_resource_set_time_interval")] - internal static extern int SetTimeInterval(int timeInterval); + [DllImport(Libraries.IoTCon, EntryPoint = "iotcon_remote_resource_set_checking_interval")] + internal static extern int SetTimeInterval(IntPtr resource, int timeInterval); [DllImport(Libraries.IoTCon, EntryPoint = "iotcon_remote_resource_get_device_name")] internal static extern int GetDeviceName(IntPtr resource, out IntPtr deviceName); diff --git a/Tizen.Network.IoTConnectivity/Tizen.Network.IoTConnectivity/RemoteResource.cs b/Tizen.Network.IoTConnectivity/Tizen.Network.IoTConnectivity/RemoteResource.cs index dfbba19..b1866b5 100644 --- a/Tizen.Network.IoTConnectivity/Tizen.Network.IoTConnectivity/RemoteResource.cs +++ b/Tizen.Network.IoTConnectivity/Tizen.Network.IoTConnectivity/RemoteResource.cs @@ -208,7 +208,7 @@ namespace Tizen.Network.IoTConnectivity get { int interval; - int ret = Interop.IoTConnectivity.Client.RemoteResource.GetTimeInterval(out interval); + int ret = Interop.IoTConnectivity.Client.RemoteResource.GetTimeInterval(_remoteResourceHandle, out interval); if (ret != (int)IoTConnectivityError.None) { Log.Warn(IoTConnectivityErrorFactory.LogTag, "Failed to get time interval"); @@ -221,7 +221,7 @@ namespace Tizen.Network.IoTConnectivity int ret = (int)IoTConnectivityError.InvalidParameter; if (value <= TimeOutMax && value > 0) { - ret = Interop.IoTConnectivity.Client.RemoteResource.SetTimeInterval(value); + ret = Interop.IoTConnectivity.Client.RemoteResource.SetTimeInterval(_remoteResourceHandle, value); } if (ret != (int)IoTConnectivityError.None) { |