diff options
author | Alan McGovern <alan.mcgovern@gmail.com> | 2012-10-01 17:11:19 +0400 |
---|---|---|
committer | Alan McGovern <alan.mcgovern@gmail.com> | 2012-10-01 17:15:42 +0400 |
commit | db49da627bebb641e6eced877db9b031e5dfe1de (patch) | |
tree | a0546cddee2e492a193213bc2f4860bbba87433e /main/src/addins/GnomePlatform | |
parent | 2b6228a427974fd55b99d701d279a6d09a306dbb (diff) |
[Windows] Fix all remaining p/invokes
We need to use cdecl
Diffstat (limited to 'main/src/addins/GnomePlatform')
-rw-r--r-- | main/src/addins/GnomePlatform/Gio.cs | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/main/src/addins/GnomePlatform/Gio.cs b/main/src/addins/GnomePlatform/Gio.cs index 269b090aed..543f3586be 100644 --- a/main/src/addins/GnomePlatform/Gio.cs +++ b/main/src/addins/GnomePlatform/Gio.cs @@ -35,33 +35,33 @@ namespace MonoDevelop.Platform { const string gio = "libgio-2.0-0.dll"; const string glib = "libglib-2.0-0.dll"; - const string gobject = "libgobject-2.0-0.dll"; - - [DllImport (gio)] - static extern IntPtr g_app_info_get_executable (IntPtr raw); - [DllImport (gio)] - static extern IntPtr g_app_info_get_id (IntPtr raw); - [DllImport (gio)] - static extern IntPtr g_app_info_get_name (IntPtr raw); - [DllImport (gio)] - static extern IntPtr g_app_info_get_default_for_type (IntPtr content_type, bool must_support_uris); - [DllImport (gio)] - static extern IntPtr g_app_info_get_all_for_type (IntPtr content_type); - [DllImport (gio)] - static extern IntPtr g_content_type_from_mime_type (IntPtr mime_type); - [DllImport (gio)] - static extern IntPtr g_content_type_get_description (IntPtr mime_type); - [DllImport (gio)] - static extern IntPtr g_content_type_get_mime_type (IntPtr content_type); - [DllImport (gio)] - static extern IntPtr g_file_info_get_content_type (IntPtr handle); - [DllImport (gio)] - static extern IntPtr g_file_new_for_uri (IntPtr uri); - [DllImport (gio)] - static extern IntPtr g_file_query_info (IntPtr handle, IntPtr attrs, int flags, IntPtr cancellable, out IntPtr error); - [DllImport (glib)] - static extern void g_list_free (IntPtr raw); - [DllImport (gobject)] + const string gobject = "libgobject-2.0-0.dll";
+
+ [DllImport (gio, CallingConvention = CallingConvention.Cdecl)] + static extern IntPtr g_app_info_get_executable (IntPtr raw);
+ [DllImport (gio, CallingConvention = CallingConvention.Cdecl)] + static extern IntPtr g_app_info_get_id (IntPtr raw);
+ [DllImport (gio, CallingConvention = CallingConvention.Cdecl)] + static extern IntPtr g_app_info_get_name (IntPtr raw);
+ [DllImport (gio, CallingConvention = CallingConvention.Cdecl)] + static extern IntPtr g_app_info_get_default_for_type (IntPtr content_type, bool must_support_uris);
+ [DllImport (gio, CallingConvention = CallingConvention.Cdecl)] + static extern IntPtr g_app_info_get_all_for_type (IntPtr content_type);
+ [DllImport (gio, CallingConvention = CallingConvention.Cdecl)] + static extern IntPtr g_content_type_from_mime_type (IntPtr mime_type);
+ [DllImport (gio, CallingConvention = CallingConvention.Cdecl)] + static extern IntPtr g_content_type_get_description (IntPtr mime_type);
+ [DllImport (gio, CallingConvention = CallingConvention.Cdecl)] + static extern IntPtr g_content_type_get_mime_type (IntPtr content_type);
+ [DllImport (gio, CallingConvention = CallingConvention.Cdecl)] + static extern IntPtr g_file_info_get_content_type (IntPtr handle);
+ [DllImport (gio, CallingConvention = CallingConvention.Cdecl)] + static extern IntPtr g_file_new_for_uri (IntPtr uri);
+ [DllImport (gio, CallingConvention = CallingConvention.Cdecl)] + static extern IntPtr g_file_query_info (IntPtr handle, IntPtr attrs, int flags, IntPtr cancellable, out IntPtr error);
+ [DllImport (glib, CallingConvention = CallingConvention.Cdecl)] + static extern void g_list_free (IntPtr raw);
+ [DllImport (gobject, CallingConvention = CallingConvention.Cdecl)] static extern void g_object_unref (IntPtr handle); struct GList { |