[Tizen.Log] Replace dlog_print with dlog_print_dotnet (#5101)
authorChanwoo Choi <chanwoo@kernel.org>
Wed, 26 Apr 2023 04:03:25 +0000 (13:03 +0900)
committerGitHub <noreply@github.com>
Wed, 26 Apr 2023 04:03:25 +0000 (13:03 +0900)
Replace dlog_print with dlog_print_dotnet which is used for only csharp api.

Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
src/Tizen.Log/Interop/Interop.Dlog.cs
src/Tizen/Interop/Interop.Dlog.cs
test/ElmSharp.Test/Log.cs
test/ElmSharp.Wearable.Test/TC/Log.cs

index db12535..f55721a 100644 (file)
@@ -50,10 +50,10 @@ internal static partial class Interop
             DLOG_PRIO_MAX,
         }
 
-        [DllImport(Libraries.Dlog, EntryPoint = "dlog_print", CallingConvention = CallingConvention.Cdecl)]
+        [DllImport(Libraries.Dlog, EntryPoint = "dlog_print_dotnet", CallingConvention = CallingConvention.Cdecl)]
         internal static extern int Print(LogPriority prio, string tag, string fmt, string msg);
 
-        [DllImport(Libraries.Dlog, EntryPoint = "dlog_print", CallingConvention = CallingConvention.Cdecl)]
+        [DllImport(Libraries.Dlog, EntryPoint = "dlog_print_dotnet", CallingConvention = CallingConvention.Cdecl)]
         internal static extern int Print(LogPriority prio, string tag, string fmt, string file, string func, int line, string msg);
 
         [DllImport(Libraries.Dlog, EntryPoint = "__dlog_print", CallingConvention = CallingConvention.Cdecl)]
index 697daa1..eee7da9 100644 (file)
@@ -38,10 +38,10 @@ internal static partial class Interop
             DLOG_SILENT,
             DLOG_PRIO_MAX,
         }
-        [DllImportAttribute(Libraries.Dlog, EntryPoint = "dlog_print", CallingConvention = CallingConvention.Cdecl)]
+        [DllImportAttribute(Libraries.Dlog, EntryPoint = "dlog_print_dotnet", CallingConvention = CallingConvention.Cdecl)]
         internal static extern int Print(LogPriority prio, string tag, string fmt, string msg);
 
-        [DllImportAttribute(Libraries.Dlog, EntryPoint = "dlog_print", CallingConvention = CallingConvention.Cdecl)]
+        [DllImportAttribute(Libraries.Dlog, EntryPoint = "dlog_print_dotnet", CallingConvention = CallingConvention.Cdecl)]
         internal static extern int Print(LogPriority prio, string tag, string fmt, string file, string func, int line, string msg);
     }
 }
index 37313aa..4b5ac94 100644 (file)
@@ -54,7 +54,7 @@ namespace ElmSharp.Test
             Print(priority, tag, "%s: %s(%d) > %s", finfo.Name, func, line, message);
         }
 
-        [DllImportAttribute(Library, EntryPoint = "dlog_print")]
+        [DllImportAttribute(Library, EntryPoint = "dlog_print_dotnet")]
         internal static extern int Print(LogPriority prio, string tag, string fmt, string file, string func, int line, string msg);
     }
 }
index 37313aa..4b5ac94 100644 (file)
@@ -54,7 +54,7 @@ namespace ElmSharp.Test
             Print(priority, tag, "%s: %s(%d) > %s", finfo.Name, func, line, message);
         }
 
-        [DllImportAttribute(Library, EntryPoint = "dlog_print")]
+        [DllImportAttribute(Library, EntryPoint = "dlog_print_dotnet")]
         internal static extern int Print(LogPriority prio, string tag, string fmt, string file, string func, int line, string msg);
     }
 }