M5: Windows client moderation UI; add C ABI getters for account list, user mute/deafen, channel topic
This commit is contained in:
@@ -63,6 +63,31 @@ internal struct VcAudioConfigNative
|
||||
public uint Complexity;
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
internal struct VcPermissionsNative
|
||||
{
|
||||
public int CanCreateTempChannel;
|
||||
public int CanKick;
|
||||
public int CanBan;
|
||||
public int CanMoveUsers;
|
||||
public int CanAdminAccounts;
|
||||
public int IsAdmin;
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
internal struct VcChannelInfoNative
|
||||
{
|
||||
public uint Id;
|
||||
public uint ParentId;
|
||||
public IntPtr Name;
|
||||
public IntPtr Topic;
|
||||
public int PasswordProtected;
|
||||
public IntPtr Password;
|
||||
public uint MaxUsers;
|
||||
public uint SortOrder;
|
||||
public VcAudioConfigNative Audio;
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
internal struct VcDeviceNative
|
||||
{
|
||||
@@ -84,6 +109,7 @@ internal struct VcChannelNative
|
||||
public uint Id;
|
||||
public uint ParentId;
|
||||
public IntPtr Name;
|
||||
public IntPtr Topic;
|
||||
public int PasswordProtected;
|
||||
public uint MaxUsers;
|
||||
}
|
||||
@@ -102,6 +128,10 @@ internal struct VcUserNative
|
||||
public IntPtr Nickname;
|
||||
public int IsGuest;
|
||||
public uint ChannelId;
|
||||
public int SelfMicMuted;
|
||||
public int SelfDeafened;
|
||||
public int ServerMuted;
|
||||
public int ServerDeafened;
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
@@ -125,3 +155,19 @@ internal struct VcStreamSummaryListNative
|
||||
public IntPtr Items;
|
||||
public nuint Count;
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
internal struct VcAccountNative
|
||||
{
|
||||
public IntPtr Username;
|
||||
public int IsAdmin;
|
||||
public ulong CreatedAtUnixMs;
|
||||
public ulong LastLoginUnixMs;
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
internal struct VcAccountListNative
|
||||
{
|
||||
public IntPtr Items;
|
||||
public nuint Count;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user