[Tizen.Multimedia.Remoting] Changing parameter order in 'StateChangedCallback'. 22/152522/1 preview1-00253
authorHyunsoo <hance.park@samsung.com>
Tue, 26 Sep 2017 08:47:03 +0000 (17:47 +0900)
committerHyunsoo <hance.park@samsung.com>
Tue, 26 Sep 2017 08:47:03 +0000 (17:47 +0900)
In native, StateChangedCallback parameters are arranged like this. : error, state, userData
However, in csharp api, parameters are arranged like this. : userData, state, error
So, it can't get error because parameter location is different. So i will modify it.

Change-Id: I8ad5cd8da846f5ae7cf47a9049744b2387c8e4e1
Signed-off-by: Hyunsoo <hance.park@samsung.com>
src/Tizen.Multimedia.Remoting/Interop/Interop.ScreenMirroring.cs [changed mode: 0644->0755]
src/Tizen.Multimedia.Remoting/ScreenMirroring/ScreenMirroring.cs [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 92d2cc8..ef4b026
@@ -23,8 +23,8 @@ internal static partial class Interop
     internal static partial class ScreenMirroring
     {
         [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
-        internal delegate void StateChangedCallback(IntPtr userData,
-            ScreenMirroringState state, ScreenMirroringErrorCode error);
+        internal delegate void StateChangedCallback(ScreenMirroringErrorCode error,
+            ScreenMirroringState state, IntPtr userData);
 
         [DllImport(Libraries.ScreenMirroring, EntryPoint = "scmirroring_sink_create")]
         internal static extern ScreenMirroringErrorCode Create(out IntPtr handle);
old mode 100644 (file)
new mode 100755 (executable)
index 4e0bd7d..1a276f4
@@ -58,6 +58,7 @@ namespace Tizen.Multimedia.Remoting
         /// </summary>
         /// <feature>http://tizen.org/feature/network.wifi.direct.display</feature>
         /// <exception cref="NotSupportedException">The feature is not supported.</exception>
+
         public ScreenMirroring()
         {
             if (IsSupported() == false)
@@ -463,7 +464,7 @@ namespace Tizen.Multimedia.Remoting
 
         private void RegisterStateChangedEvent()
         {
-            _stateChangedCallback = (_, state, error) =>
+            _stateChangedCallback = (error, state, _) =>
             {
                 var prevState = _state.Value;