mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-25 08:15:43 +00:00
32 lines
457 B
C#
32 lines
457 B
C#
|
namespace GConf
|
||
|
{
|
||
|
using System;
|
||
|
using System.Runtime.InteropServices;
|
||
|
|
||
|
internal struct _NativeEntry
|
||
|
{
|
||
|
public string key;
|
||
|
public IntPtr value;
|
||
|
}
|
||
|
|
||
|
internal class _Entry
|
||
|
{
|
||
|
_NativeEntry native;
|
||
|
|
||
|
public _Entry (IntPtr raw)
|
||
|
{
|
||
|
native = (_NativeEntry) Marshal.PtrToStructure (raw, typeof (_NativeEntry));
|
||
|
}
|
||
|
|
||
|
public string Key
|
||
|
{
|
||
|
get { return native.key; }
|
||
|
}
|
||
|
|
||
|
internal IntPtr ValuePtr
|
||
|
{
|
||
|
get { return native.value; }
|
||
|
}
|
||
|
}
|
||
|
}
|