gio: Use the GioNativeDll in all custom gio code

The previous commit added the GioNativeDll constant for DllImport
statements, so we might as well use it.
This commit is contained in:
Bertrand Lorentz 2015-05-10 17:50:23 +02:00
parent b06ff4fd15
commit a3db272fee
3 changed files with 5 additions and 5 deletions

View file

@ -23,7 +23,7 @@ namespace GLib {
using System.Runtime.InteropServices;
public partial class AppInfoAdapter {
[DllImport ("libgio-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
[DllImport (GioGlobal.GioNativeDll, CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr g_app_info_get_all();
public static GLib.IAppInfo[] GetAll () {

View file

@ -37,7 +37,7 @@ namespace GLib {
return Delete (null);
}
[DllImport ("libgio-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
[DllImport (GioGlobal.GioNativeDll, CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr g_file_get_uri(IntPtr raw);
public System.Uri Uri {

View file

@ -27,7 +27,7 @@ namespace GLib
{
public class FileFactory
{
[DllImport ("libgio-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
[DllImport (GioGlobal.GioNativeDll, CallingConvention = CallingConvention.Cdecl)]
private static extern IntPtr g_file_new_for_uri (string uri);
public static IFile NewForUri (string uri)
@ -40,7 +40,7 @@ namespace GLib
return GLib.FileAdapter.GetObject (g_file_new_for_uri (uri.ToString ()), false) as IFile;
}
[DllImport ("libgio-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
[DllImport (GioGlobal.GioNativeDll, CallingConvention = CallingConvention.Cdecl)]
private static extern IntPtr g_file_new_for_path (string path);
public static IFile NewForPath (string path)
@ -48,7 +48,7 @@ namespace GLib
return GLib.FileAdapter.GetObject (g_file_new_for_path (path), false) as IFile;
}
[DllImport ("libgio-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
[DllImport (GioGlobal.GioNativeDll, CallingConvention = CallingConvention.Cdecl)]
private static extern IntPtr g_file_new_for_commandline_arg (string arg);
public static IFile NewFromCommandlineArg (string arg)