#[repr(C)]pub struct XilaStartup {
pub size: u32,
pub api: *const XilaApi,
pub heap: *mut Heap,
pub arguments: *const XilaString,
pub argument_count: usize,
pub standard_input: *mut File,
pub standard_output: *mut File,
pub standard_error: *mut File,
pub home: *mut Directory,
pub process: *const Process,
pub program_name: XilaString,
pub network: *const Network,
}Expand description
Host-owned startup data, valid only for the duration of the entry call.
The API is always present. Capability pointers may be null when not granted;
the process capability is null for an application that is not a process, such
as a built-in one linked into the firmware, whose process calls fail with
InvalidArgument. A null argument array has argument_count zero.
Fields are only ever appended: check size before reading a field that a
later Xila version added, such as network.
Applications must not close, retain or transfer these objects; closing them is
undefined behavior. Objects opened by the application must still be closed.
Fields§
§size: u32§api: *const XilaApi§heap: *mut Heap§arguments: *const XilaString§argument_count: usize§standard_input: *mut File§standard_output: *mut File§standard_error: *mut File§home: *mut Directory§process: *const Process§program_name: XilaStringExecutable’s launch name. Empty for a linked entry without a process.
network: *const NetworkNetwork authority granted to the process, with only the rights its launch
granted explicitly (connect, listen, resolve). Null unless the launch granted at
least one right and the host has a network stack, so a process has no network by
default. Appended after program_name, so images built before it existed still
start.