blob: 901c29d35ab4beadee521405c4a5e07c1cd277f8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.InteropServices;
namespace MonoLibUsb.Profile
{
/// <summary>
/// File descriptor for polling. <a href="http://libusb.sourceforge.net/api-1.0/structlibusb__pollfd.html#_details">More..</a>
/// </summary>
[StructLayout(LayoutKind.Sequential)]
public class PollfdItem
{
internal PollfdItem(IntPtr pPollfd)
{
Marshal.PtrToStructure(pPollfd, this);
}
/// <summary>
/// Numeric file descriptor.
/// </summary>
public readonly int fd;
/// <summary>
/// Event flags to poll for from poll.h.
/// </summary>
public readonly short events;
}
}
|