Files
KioskApp/GtkSharp/Source/Libs/GioSharp/Generated/GLib/Credentials.cs
2024-09-15 22:40:48 +02:00

115 lines
4.1 KiB
C#

// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace GLib {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using static GLib.AbiStructExtension;
#region Autogenerated code
public partial class Credentials : GLib.Object {
public Credentials (IntPtr raw) : base(raw) {}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_g_credentials_new();
static d_g_credentials_new g_credentials_new = FuncLoader.LoadFunction<d_g_credentials_new>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Gio), "g_credentials_new"));
public Credentials () : base (IntPtr.Zero)
{
if (GetType () != typeof (Credentials)) {
CreateNativeObject (Array.Empty<string> (), Array.Empty<GLib.Value> ());
return;
}
Raw = g_credentials_new();
}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _class_abi = null;
static public unsafe new GLib.AbiStruct class_abi {
get {
if (_class_abi == null)
_class_abi = new GLib.AbiStruct (GLib.Object.class_abi.Fields);
return _class_abi;
}
}
// End of the ABI representation.
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_g_credentials_get_native(IntPtr raw, int native_type);
static d_g_credentials_get_native g_credentials_get_native = FuncLoader.LoadFunction<d_g_credentials_get_native>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Gio), "g_credentials_get_native"));
public IntPtr GetNative(GLib.CredentialsType native_type) {
IntPtr raw_ret = g_credentials_get_native(Handle, (int) native_type);
IntPtr ret = raw_ret;
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_g_credentials_get_type();
static d_g_credentials_get_type g_credentials_get_type = FuncLoader.LoadFunction<d_g_credentials_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Gio), "g_credentials_get_type"));
public static new GLib.GType GType {
get {
IntPtr raw_ret = g_credentials_get_type();
GLib.GType ret = new GLib.GType(raw_ret);
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate bool d_g_credentials_is_same_user(IntPtr raw, IntPtr other_credentials, out IntPtr error);
static d_g_credentials_is_same_user g_credentials_is_same_user = FuncLoader.LoadFunction<d_g_credentials_is_same_user>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Gio), "g_credentials_is_same_user"));
public unsafe bool IsSameUser(GLib.Credentials other_credentials) {
IntPtr error = IntPtr.Zero;
bool raw_ret = g_credentials_is_same_user(Handle, other_credentials == null ? IntPtr.Zero : other_credentials.Handle, out error);
bool ret = raw_ret;
if (error != IntPtr.Zero) throw new GLib.GException (error);
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_g_credentials_set_native(IntPtr raw, int native_type, IntPtr native);
static d_g_credentials_set_native g_credentials_set_native = FuncLoader.LoadFunction<d_g_credentials_set_native>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Gio), "g_credentials_set_native"));
public void SetNative(GLib.CredentialsType native_type, IntPtr native) {
g_credentials_set_native(Handle, (int) native_type, native);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_g_credentials_to_string(IntPtr raw);
static d_g_credentials_to_string g_credentials_to_string = FuncLoader.LoadFunction<d_g_credentials_to_string>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Gio), "g_credentials_to_string"));
public override string ToString() {
IntPtr raw_ret = g_credentials_to_string(Handle);
string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);
return ret;
}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _abi_info = null;
static public unsafe new GLib.AbiStruct abi_info {
get {
if (_abi_info == null)
_abi_info = new GLib.AbiStruct (GLib.Object.abi_info.Fields);
return _abi_info;
}
}
// End of the ABI representation.
#endregion
}
}