summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ElmSharp/Interop/Interop.Elementary.cs10
1 files changed, 8 insertions, 2 deletions
diff --git a/ElmSharp/Interop/Interop.Elementary.cs b/ElmSharp/Interop/Interop.Elementary.cs
index f63a9c3..3791d11 100644
--- a/ElmSharp/Interop/Interop.Elementary.cs
+++ b/ElmSharp/Interop/Interop.Elementary.cs
@@ -71,8 +71,14 @@ internal static partial class Interop
[DllImport(Libraries.Elementary)]
internal static extern double elm_config_scale_get();
- [DllImport(Libraries.Elementary)]
- internal static extern string elm_config_profile_get();
+ [DllImport(Libraries.Elementary, EntryPoint = "elm_config_profile_get")]
+ internal static extern IntPtr _elm_config_profile_get();
+
+ internal static string elm_config_profile_get()
+ {
+ var str = _elm_config_profile_get();
+ return Marshal.PtrToStringAnsi(str);
+ }
[DllImport(Libraries.Elementary)]
internal static extern void elm_config_preferred_engine_set(string name);