no more submodule

This commit is contained in:
2024-09-15 22:40:48 +02:00
parent df3b8a3135
commit 0234b33671
5804 changed files with 943618 additions and 1 deletions

View File

@@ -0,0 +1,471 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace GLib {
using System;
using System.Runtime.InteropServices;
#region Autogenerated code
public partial class AppInfoAdapter : GLib.GInterfaceAdapter, GLib.IAppInfo {
GLib.Object implementor;
public AppInfoAdapter (IntPtr handle)
{
if (!_gtype.IsInstance (handle))
throw new ArgumentException ("The gobject doesn't implement the GInterface of this adapter", "handle");
implementor = GLib.Object.GetObject (handle);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_g_app_info_get_type();
static d_g_app_info_get_type g_app_info_get_type = FuncLoader.LoadFunction<d_g_app_info_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Gio), "g_app_info_get_type"));
private static GLib.GType _gtype = new GLib.GType (g_app_info_get_type ());
public static GLib.GType GType {
get {
return _gtype;
}
}
public override GLib.GType GInterfaceGType {
get {
return _gtype;
}
}
public override IntPtr Handle {
get {
return implementor.Handle;
}
}
public IntPtr OwnedHandle {
get {
return implementor.OwnedHandle;
}
}
public static IAppInfo GetObject (IntPtr handle, bool owned)
{
GLib.Object obj = GLib.Object.GetObject (handle, owned);
return GetObject (obj);
}
public static IAppInfo GetObject (GLib.Object obj)
{
if (obj == null)
return null;
else if (obj as IAppInfo == null)
return new AppInfoAdapter (obj.Handle);
else
return obj as IAppInfo;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate bool d_g_app_info_add_supports_type(IntPtr raw, IntPtr content_type, out IntPtr error);
static d_g_app_info_add_supports_type g_app_info_add_supports_type = FuncLoader.LoadFunction<d_g_app_info_add_supports_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Gio), "g_app_info_add_supports_type"));
public bool AddSupportsType(string content_type) {
IntPtr native_content_type = GLib.Marshaller.StringToPtrGStrdup (content_type);
IntPtr error = IntPtr.Zero;
bool raw_ret = g_app_info_add_supports_type(Handle, native_content_type, out error);
bool ret = raw_ret;
GLib.Marshaller.Free (native_content_type);
if (error != IntPtr.Zero) throw new GLib.GException (error);
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate bool d_g_app_info_can_delete(IntPtr raw);
static d_g_app_info_can_delete g_app_info_can_delete = FuncLoader.LoadFunction<d_g_app_info_can_delete>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Gio), "g_app_info_can_delete"));
public bool CanDelete() {
bool raw_ret = g_app_info_can_delete(Handle);
bool ret = raw_ret;
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate bool d_g_app_info_can_remove_supports_type(IntPtr raw);
static d_g_app_info_can_remove_supports_type g_app_info_can_remove_supports_type = FuncLoader.LoadFunction<d_g_app_info_can_remove_supports_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Gio), "g_app_info_can_remove_supports_type"));
public bool CanRemoveSupportsType {
get {
bool raw_ret = g_app_info_can_remove_supports_type(Handle);
bool ret = raw_ret;
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_g_app_info_create_from_commandline(IntPtr commandline, IntPtr application_name, int flags, out IntPtr error);
static d_g_app_info_create_from_commandline g_app_info_create_from_commandline = FuncLoader.LoadFunction<d_g_app_info_create_from_commandline>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Gio), "g_app_info_create_from_commandline"));
public static GLib.IAppInfo CreateFromCommandline(string commandline, string application_name, GLib.AppInfoCreateFlags flags) {
IntPtr native_commandline = GLib.Marshaller.StringToPtrGStrdup (commandline);
IntPtr native_application_name = GLib.Marshaller.StringToPtrGStrdup (application_name);
IntPtr error = IntPtr.Zero;
IntPtr raw_ret = g_app_info_create_from_commandline(native_commandline, native_application_name, (int) flags, out error);
GLib.IAppInfo ret = GLib.AppInfoAdapter.GetObject (raw_ret, false);
GLib.Marshaller.Free (native_commandline);
GLib.Marshaller.Free (native_application_name);
if (error != IntPtr.Zero) throw new GLib.GException (error);
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate bool d_g_app_info_delete(IntPtr raw);
static d_g_app_info_delete g_app_info_delete = FuncLoader.LoadFunction<d_g_app_info_delete>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Gio), "g_app_info_delete"));
public bool Delete() {
bool raw_ret = g_app_info_delete(Handle);
bool ret = raw_ret;
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_g_app_info_dup(IntPtr raw);
static d_g_app_info_dup g_app_info_dup = FuncLoader.LoadFunction<d_g_app_info_dup>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Gio), "g_app_info_dup"));
public GLib.IAppInfo Dup() {
IntPtr raw_ret = g_app_info_dup(Handle);
GLib.IAppInfo ret = GLib.AppInfoAdapter.GetObject (raw_ret, false);
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate bool d_g_app_info_equal(IntPtr raw, IntPtr appinfo2);
static d_g_app_info_equal g_app_info_equal = FuncLoader.LoadFunction<d_g_app_info_equal>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Gio), "g_app_info_equal"));
public bool Equal(GLib.IAppInfo appinfo2) {
bool raw_ret = g_app_info_equal(Handle, appinfo2 == null ? IntPtr.Zero : ((appinfo2 is GLib.Object) ? (appinfo2 as GLib.Object).Handle : (appinfo2 as GLib.AppInfoAdapter).Handle));
bool ret = raw_ret;
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_g_app_info_get_all_for_type(IntPtr content_type);
static d_g_app_info_get_all_for_type g_app_info_get_all_for_type = FuncLoader.LoadFunction<d_g_app_info_get_all_for_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Gio), "g_app_info_get_all_for_type"));
public static GLib.IAppInfo[] GetAllForType(string content_type) {
IntPtr native_content_type = GLib.Marshaller.StringToPtrGStrdup (content_type);
IntPtr raw_ret = g_app_info_get_all_for_type(native_content_type);
GLib.IAppInfo[] ret = GLib.Marshaller.ListPtrToArray<GLib.IAppInfo, GLib.IAppInfo> (raw_ret, true, false);
GLib.Marshaller.Free (native_content_type);
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_g_app_info_get_commandline(IntPtr raw);
static d_g_app_info_get_commandline g_app_info_get_commandline = FuncLoader.LoadFunction<d_g_app_info_get_commandline>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Gio), "g_app_info_get_commandline"));
public string Commandline {
get {
IntPtr raw_ret = g_app_info_get_commandline(Handle);
string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_g_app_info_get_default_for_type(IntPtr content_type, bool must_support_uris);
static d_g_app_info_get_default_for_type g_app_info_get_default_for_type = FuncLoader.LoadFunction<d_g_app_info_get_default_for_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Gio), "g_app_info_get_default_for_type"));
public static GLib.IAppInfo GetDefaultForType(string content_type, bool must_support_uris) {
IntPtr native_content_type = GLib.Marshaller.StringToPtrGStrdup (content_type);
IntPtr raw_ret = g_app_info_get_default_for_type(native_content_type, must_support_uris);
GLib.IAppInfo ret = GLib.AppInfoAdapter.GetObject (raw_ret, false);
GLib.Marshaller.Free (native_content_type);
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_g_app_info_get_default_for_uri_scheme(IntPtr uri_scheme);
static d_g_app_info_get_default_for_uri_scheme g_app_info_get_default_for_uri_scheme = FuncLoader.LoadFunction<d_g_app_info_get_default_for_uri_scheme>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Gio), "g_app_info_get_default_for_uri_scheme"));
public static GLib.IAppInfo GetDefaultForUriScheme(string uri_scheme) {
IntPtr native_uri_scheme = GLib.Marshaller.StringToPtrGStrdup (uri_scheme);
IntPtr raw_ret = g_app_info_get_default_for_uri_scheme(native_uri_scheme);
GLib.IAppInfo ret = GLib.AppInfoAdapter.GetObject (raw_ret, false);
GLib.Marshaller.Free (native_uri_scheme);
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_g_app_info_get_description(IntPtr raw);
static d_g_app_info_get_description g_app_info_get_description = FuncLoader.LoadFunction<d_g_app_info_get_description>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Gio), "g_app_info_get_description"));
public string Description {
get {
IntPtr raw_ret = g_app_info_get_description(Handle);
string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_g_app_info_get_display_name(IntPtr raw);
static d_g_app_info_get_display_name g_app_info_get_display_name = FuncLoader.LoadFunction<d_g_app_info_get_display_name>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Gio), "g_app_info_get_display_name"));
public string DisplayName {
get {
IntPtr raw_ret = g_app_info_get_display_name(Handle);
string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_g_app_info_get_executable(IntPtr raw);
static d_g_app_info_get_executable g_app_info_get_executable = FuncLoader.LoadFunction<d_g_app_info_get_executable>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Gio), "g_app_info_get_executable"));
public string Executable {
get {
IntPtr raw_ret = g_app_info_get_executable(Handle);
string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_g_app_info_get_fallback_for_type(IntPtr content_type);
static d_g_app_info_get_fallback_for_type g_app_info_get_fallback_for_type = FuncLoader.LoadFunction<d_g_app_info_get_fallback_for_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Gio), "g_app_info_get_fallback_for_type"));
public static GLib.IAppInfo[] GetFallbackForType(string content_type) {
IntPtr native_content_type = GLib.Marshaller.StringToPtrGStrdup (content_type);
IntPtr raw_ret = g_app_info_get_fallback_for_type(native_content_type);
GLib.IAppInfo[] ret = GLib.Marshaller.ListPtrToArray<GLib.IAppInfo, GLib.IAppInfo> (raw_ret, true, true);
GLib.Marshaller.Free (native_content_type);
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_g_app_info_get_icon(IntPtr raw);
static d_g_app_info_get_icon g_app_info_get_icon = FuncLoader.LoadFunction<d_g_app_info_get_icon>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Gio), "g_app_info_get_icon"));
public GLib.IIcon Icon {
get {
IntPtr raw_ret = g_app_info_get_icon(Handle);
GLib.IIcon ret = GLib.IconAdapter.GetObject (raw_ret, false);
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_g_app_info_get_id(IntPtr raw);
static d_g_app_info_get_id g_app_info_get_id = FuncLoader.LoadFunction<d_g_app_info_get_id>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Gio), "g_app_info_get_id"));
public string Id {
get {
IntPtr raw_ret = g_app_info_get_id(Handle);
string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_g_app_info_get_name(IntPtr raw);
static d_g_app_info_get_name g_app_info_get_name = FuncLoader.LoadFunction<d_g_app_info_get_name>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Gio), "g_app_info_get_name"));
public string Name {
get {
IntPtr raw_ret = g_app_info_get_name(Handle);
string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_g_app_info_get_recommended_for_type(IntPtr content_type);
static d_g_app_info_get_recommended_for_type g_app_info_get_recommended_for_type = FuncLoader.LoadFunction<d_g_app_info_get_recommended_for_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Gio), "g_app_info_get_recommended_for_type"));
public static GLib.IAppInfo[] GetRecommendedForType(string content_type) {
IntPtr native_content_type = GLib.Marshaller.StringToPtrGStrdup (content_type);
IntPtr raw_ret = g_app_info_get_recommended_for_type(native_content_type);
GLib.IAppInfo[] ret = GLib.Marshaller.ListPtrToArray<GLib.IAppInfo, GLib.IAppInfo> (raw_ret, true, true);
GLib.Marshaller.Free (native_content_type);
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_g_app_info_get_supported_types(IntPtr raw);
static d_g_app_info_get_supported_types g_app_info_get_supported_types = FuncLoader.LoadFunction<d_g_app_info_get_supported_types>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Gio), "g_app_info_get_supported_types"));
public string SupportedTypes {
get {
IntPtr raw_ret = g_app_info_get_supported_types(Handle);
string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate bool d_g_app_info_launch(IntPtr raw, IntPtr files, IntPtr launch_context, out IntPtr error);
static d_g_app_info_launch g_app_info_launch = FuncLoader.LoadFunction<d_g_app_info_launch>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Gio), "g_app_info_launch"));
public bool Launch(GLib.List files, GLib.AppLaunchContext launch_context) {
IntPtr error = IntPtr.Zero;
bool raw_ret = g_app_info_launch(Handle, files == null ? IntPtr.Zero : files.Handle, launch_context == null ? IntPtr.Zero : launch_context.Handle, out error);
bool ret = raw_ret;
if (error != IntPtr.Zero) throw new GLib.GException (error);
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate bool d_g_app_info_launch_default_for_uri(IntPtr uri, IntPtr launch_context, out IntPtr error);
static d_g_app_info_launch_default_for_uri g_app_info_launch_default_for_uri = FuncLoader.LoadFunction<d_g_app_info_launch_default_for_uri>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Gio), "g_app_info_launch_default_for_uri"));
public static bool LaunchDefaultForUri(string uri, GLib.AppLaunchContext launch_context) {
IntPtr native_uri = GLib.Marshaller.StringToPtrGStrdup (uri);
IntPtr error = IntPtr.Zero;
bool raw_ret = g_app_info_launch_default_for_uri(native_uri, launch_context == null ? IntPtr.Zero : launch_context.Handle, out error);
bool ret = raw_ret;
GLib.Marshaller.Free (native_uri);
if (error != IntPtr.Zero) throw new GLib.GException (error);
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_g_app_info_launch_default_for_uri_async(IntPtr uri, IntPtr launch_context, IntPtr cancellable, GLibSharp.AsyncReadyCallbackNative cb, IntPtr user_data);
static d_g_app_info_launch_default_for_uri_async g_app_info_launch_default_for_uri_async = FuncLoader.LoadFunction<d_g_app_info_launch_default_for_uri_async>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Gio), "g_app_info_launch_default_for_uri_async"));
public static void LaunchDefaultForUriAsync(string uri, GLib.AppLaunchContext launch_context, GLib.Cancellable cancellable, GLib.AsyncReadyCallback cb) {
IntPtr native_uri = GLib.Marshaller.StringToPtrGStrdup (uri);
GLibSharp.AsyncReadyCallbackWrapper cb_wrapper = new GLibSharp.AsyncReadyCallbackWrapper (cb);
cb_wrapper.PersistUntilCalled ();
g_app_info_launch_default_for_uri_async(native_uri, launch_context == null ? IntPtr.Zero : launch_context.Handle, cancellable == null ? IntPtr.Zero : cancellable.Handle, cb_wrapper.NativeDelegate, IntPtr.Zero);
GLib.Marshaller.Free (native_uri);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate bool d_g_app_info_launch_default_for_uri_finish(IntPtr result, out IntPtr error);
static d_g_app_info_launch_default_for_uri_finish g_app_info_launch_default_for_uri_finish = FuncLoader.LoadFunction<d_g_app_info_launch_default_for_uri_finish>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Gio), "g_app_info_launch_default_for_uri_finish"));
public static bool LaunchDefaultForUriFinish(GLib.IAsyncResult result) {
IntPtr error = IntPtr.Zero;
bool raw_ret = g_app_info_launch_default_for_uri_finish(result == null ? IntPtr.Zero : ((result is GLib.Object) ? (result as GLib.Object).Handle : (result as GLib.AsyncResultAdapter).Handle), out error);
bool ret = raw_ret;
if (error != IntPtr.Zero) throw new GLib.GException (error);
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate bool d_g_app_info_launch_uris(IntPtr raw, IntPtr uris, IntPtr launch_context, out IntPtr error);
static d_g_app_info_launch_uris g_app_info_launch_uris = FuncLoader.LoadFunction<d_g_app_info_launch_uris>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Gio), "g_app_info_launch_uris"));
public bool LaunchUris(GLib.List uris, GLib.AppLaunchContext launch_context) {
IntPtr error = IntPtr.Zero;
bool raw_ret = g_app_info_launch_uris(Handle, uris == null ? IntPtr.Zero : uris.Handle, launch_context == null ? IntPtr.Zero : launch_context.Handle, out error);
bool ret = raw_ret;
if (error != IntPtr.Zero) throw new GLib.GException (error);
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate bool d_g_app_info_remove_supports_type(IntPtr raw, IntPtr content_type, out IntPtr error);
static d_g_app_info_remove_supports_type g_app_info_remove_supports_type = FuncLoader.LoadFunction<d_g_app_info_remove_supports_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Gio), "g_app_info_remove_supports_type"));
public bool RemoveSupportsType(string content_type) {
IntPtr native_content_type = GLib.Marshaller.StringToPtrGStrdup (content_type);
IntPtr error = IntPtr.Zero;
bool raw_ret = g_app_info_remove_supports_type(Handle, native_content_type, out error);
bool ret = raw_ret;
GLib.Marshaller.Free (native_content_type);
if (error != IntPtr.Zero) throw new GLib.GException (error);
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_g_app_info_reset_type_associations(IntPtr content_type);
static d_g_app_info_reset_type_associations g_app_info_reset_type_associations = FuncLoader.LoadFunction<d_g_app_info_reset_type_associations>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Gio), "g_app_info_reset_type_associations"));
public static void ResetTypeAssociations(string content_type) {
IntPtr native_content_type = GLib.Marshaller.StringToPtrGStrdup (content_type);
g_app_info_reset_type_associations(native_content_type);
GLib.Marshaller.Free (native_content_type);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate bool d_g_app_info_set_as_default_for_extension(IntPtr raw, IntPtr extension, out IntPtr error);
static d_g_app_info_set_as_default_for_extension g_app_info_set_as_default_for_extension = FuncLoader.LoadFunction<d_g_app_info_set_as_default_for_extension>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Gio), "g_app_info_set_as_default_for_extension"));
public bool SetAsDefaultForExtension(string extension) {
IntPtr native_extension = GLib.Marshaller.StringToPtrGStrdup (extension);
IntPtr error = IntPtr.Zero;
bool raw_ret = g_app_info_set_as_default_for_extension(Handle, native_extension, out error);
bool ret = raw_ret;
GLib.Marshaller.Free (native_extension);
if (error != IntPtr.Zero) throw new GLib.GException (error);
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate bool d_g_app_info_set_as_default_for_type(IntPtr raw, IntPtr content_type, out IntPtr error);
static d_g_app_info_set_as_default_for_type g_app_info_set_as_default_for_type = FuncLoader.LoadFunction<d_g_app_info_set_as_default_for_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Gio), "g_app_info_set_as_default_for_type"));
public bool SetAsDefaultForType(string content_type) {
IntPtr native_content_type = GLib.Marshaller.StringToPtrGStrdup (content_type);
IntPtr error = IntPtr.Zero;
bool raw_ret = g_app_info_set_as_default_for_type(Handle, native_content_type, out error);
bool ret = raw_ret;
GLib.Marshaller.Free (native_content_type);
if (error != IntPtr.Zero) throw new GLib.GException (error);
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate bool d_g_app_info_set_as_last_used_for_type(IntPtr raw, IntPtr content_type, out IntPtr error);
static d_g_app_info_set_as_last_used_for_type g_app_info_set_as_last_used_for_type = FuncLoader.LoadFunction<d_g_app_info_set_as_last_used_for_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Gio), "g_app_info_set_as_last_used_for_type"));
public bool SetAsLastUsedForType(string content_type) {
IntPtr native_content_type = GLib.Marshaller.StringToPtrGStrdup (content_type);
IntPtr error = IntPtr.Zero;
bool raw_ret = g_app_info_set_as_last_used_for_type(Handle, native_content_type, out error);
bool ret = raw_ret;
GLib.Marshaller.Free (native_content_type);
if (error != IntPtr.Zero) throw new GLib.GException (error);
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate bool d_g_app_info_should_show(IntPtr raw);
static d_g_app_info_should_show g_app_info_should_show = FuncLoader.LoadFunction<d_g_app_info_should_show>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Gio), "g_app_info_should_show"));
public bool ShouldShow {
get {
bool raw_ret = g_app_info_should_show(Handle);
bool ret = raw_ret;
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate bool d_g_app_info_supports_files(IntPtr raw);
static d_g_app_info_supports_files g_app_info_supports_files = FuncLoader.LoadFunction<d_g_app_info_supports_files>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Gio), "g_app_info_supports_files"));
public bool SupportsFiles {
get {
bool raw_ret = g_app_info_supports_files(Handle);
bool ret = raw_ret;
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate bool d_g_app_info_supports_uris(IntPtr raw);
static d_g_app_info_supports_uris g_app_info_supports_uris = FuncLoader.LoadFunction<d_g_app_info_supports_uris>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Gio), "g_app_info_supports_uris"));
public bool SupportsUris {
get {
bool raw_ret = g_app_info_supports_uris(Handle);
bool ret = raw_ret;
return ret;
}
}
#endregion
}
}