Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

Commit

Permalink
Change glib DllImports to libglib-2.0-0.dll
Browse files Browse the repository at this point in the history
The DllImport statement were referring to the glib
library as libglib-2.0.dll, without the -0, whereas the .config file
has the -0. libglib-2.0-0.dll is the right filename for glib on Windows
and is used by gtk-sharp, so we use it too.
  • Loading branch information
bl8 committed Sep 11, 2010
1 parent 276a699 commit 1a1adb8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions GKeyFile/GKeyFile.custom
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
return GetStringList (group_name, key, out length);
}

[DllImport("libglib-2.0.dll")]
[DllImport("libglib-2.0-0.dll")]
static extern unsafe IntPtr g_key_file_get_boolean_list(IntPtr raw, IntPtr group_name, IntPtr key, out UIntPtr length, out IntPtr error);

public unsafe bool[] GetBooleanList(string group_name, string key) {
Expand All @@ -88,7 +88,7 @@
return ret;
}

[DllImport("libglib-2.0.dll")]
[DllImport("libglib-2.0-0.dll")]
static extern unsafe IntPtr g_key_file_get_integer_list(IntPtr raw, IntPtr group_name, IntPtr key, out UIntPtr length, out IntPtr error);

public unsafe int[] GetIntegerList(string group_name, string key) {
Expand All @@ -107,7 +107,7 @@
return ret;
}

[DllImport("libglib-2.0.dll")]
[DllImport("libglib-2.0-0.dll")]
static extern unsafe IntPtr g_key_file_get_double_list(IntPtr raw, IntPtr group_name, IntPtr key, out UIntPtr length, out IntPtr error);

public unsafe double[] GetDoubleList(string group_name, string key) {
Expand All @@ -126,7 +126,7 @@
return ret;
}

[DllImport("libglib-2.0.dll")]
[DllImport("libglib-2.0-0.dll")]
static extern void g_key_file_set_list_separator(IntPtr raw, byte separator);

public char ListSeparator {
Expand Down
4 changes: 2 additions & 2 deletions GKeyFile/gkeyfile-api.raw
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Please DO NOT MODIFY THIS FILE, modify .metadata files instead.

-->
<namespace name="KeyFile" library="libglib-2.0.dll">
<namespace name="KeyFile" library="libglib-2.0-0.dll">
<enum name="Error" cname="GKeyFileError" type="enum">
<member cname="G_KEY_FILE_ERROR_UNKNOWN_ENCODING" name="UnknownEncoding" />
<member cname="G_KEY_FILE_ERROR_PARSE" name="Parse" />
Expand Down Expand Up @@ -340,4 +340,4 @@
</method>
</struct>
</namespace>
</api>
</api>

0 comments on commit 1a1adb8

Please sign in to comment.