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:
parent
b06ff4fd15
commit
a3db272fee
3 changed files with 5 additions and 5 deletions
|
@ -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 () {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue