36
36
const string gio = "libgio-2.0-0.dll";
37
37
const string glib = "libglib-2.0-0.dll";
38
const string gobject = "libgobject-2.0-0.dll";
41
static extern IntPtr g_app_info_get_executable (IntPtr raw);
43
static extern IntPtr g_app_info_get_id (IntPtr raw);
45
static extern IntPtr g_app_info_get_name (IntPtr raw);
47
static extern IntPtr g_app_info_get_default_for_type (IntPtr content_type, bool must_support_uris);
49
static extern IntPtr g_app_info_get_all_for_type (IntPtr content_type);
51
static extern IntPtr g_content_type_from_mime_type (IntPtr mime_type);
53
static extern IntPtr g_content_type_get_description (IntPtr mime_type);
55
static extern IntPtr g_content_type_get_mime_type (IntPtr content_type);
57
static extern IntPtr g_file_info_get_content_type (IntPtr handle);
59
static extern IntPtr g_file_new_for_uri (IntPtr uri);
61
static extern IntPtr g_file_query_info (IntPtr handle, IntPtr attrs, int flags, IntPtr cancellable, out IntPtr error);
63
static extern void g_list_free (IntPtr raw);
38
const string gobject = "libgobject-2.0-0.dll";
40
[DllImport (gio, CallingConvention = CallingConvention.Cdecl)]
41
static extern IntPtr g_app_info_get_executable (IntPtr raw);
42
[DllImport (gio, CallingConvention = CallingConvention.Cdecl)]
43
static extern IntPtr g_app_info_get_id (IntPtr raw);
44
[DllImport (gio, CallingConvention = CallingConvention.Cdecl)]
45
static extern IntPtr g_app_info_get_name (IntPtr raw);
46
[DllImport (gio, CallingConvention = CallingConvention.Cdecl)]
47
static extern IntPtr g_app_info_get_default_for_type (IntPtr content_type, bool must_support_uris);
48
[DllImport (gio, CallingConvention = CallingConvention.Cdecl)]
49
static extern IntPtr g_app_info_get_all_for_type (IntPtr content_type);
50
[DllImport (gio, CallingConvention = CallingConvention.Cdecl)]
51
static extern IntPtr g_content_type_from_mime_type (IntPtr mime_type);
52
[DllImport (gio, CallingConvention = CallingConvention.Cdecl)]
53
static extern IntPtr g_content_type_get_description (IntPtr mime_type);
54
[DllImport (gio, CallingConvention = CallingConvention.Cdecl)]
55
static extern IntPtr g_content_type_get_mime_type (IntPtr content_type);
56
[DllImport (gio, CallingConvention = CallingConvention.Cdecl)]
57
static extern IntPtr g_file_info_get_content_type (IntPtr handle);
58
[DllImport (gio, CallingConvention = CallingConvention.Cdecl)]
59
static extern IntPtr g_file_new_for_uri (IntPtr uri);
60
[DllImport (gio, CallingConvention = CallingConvention.Cdecl)]
61
static extern IntPtr g_file_query_info (IntPtr handle, IntPtr attrs, int flags, IntPtr cancellable, out IntPtr error);
62
[DllImport (glib, CallingConvention = CallingConvention.Cdecl)]
63
static extern void g_list_free (IntPtr raw);
64
[DllImport (gobject, CallingConvention = CallingConvention.Cdecl)]
65
65
static extern void g_object_unref (IntPtr handle);