Module sys/events
sys/events
TTY, Poll, and FS Event constants.
Types
PollCallback
type-alias
PollCallback
PollHandle
struct
PollHandle
Fields
| Name | Type | Description |
|---|---|---|
handle | *(u8) |
FsEventCallback
type-alias
FsEventCallback
FsEventHandle
struct
FsEventHandle
Fields
| Name | Type | Description |
|---|---|---|
handle | *(u8) |
Functions
poll_init
function
poll_start
function
fn(handle : PollHandle, events : i32, callback : PollCallback, user_data : *(u8)) -> i32
Parameters
| Name | Type | Notes |
|---|---|---|
handle | PollHandle | |
events | i32 | |
callback | PollCallback | |
user_data | *(u8) |
Returns: i32
poll_stop
function
poll_close
function
fs_event_init
function
fn() -> FsEventHandle
Returns: FsEventHandle
fs_event_start
function
fn(handle : FsEventHandle, path : *(u8), flags : u32, callback : FsEventCallback, user_data : *(u8)) -> i32
Parameters
| Name | Type | Notes |
|---|---|---|
handle | FsEventHandle | |
path | *(u8) | |
flags | u32 | |
callback | FsEventCallback | |
user_data | *(u8) |
Returns: i32
fs_event_stop
function
fs_event_close
function
Constants
Value: 0
Value: 1
Value: 2
Value: 1
Value: 2
Value: 4
Value: 8
Value: 1
Value: 2
Value: 4
Value: 1
Value: 2