finite_shell_init
The finite_shell_init function creates a new FiniteShell.
FiniteShell *finite_shell_init(char *device)Parameters
Section titled “Parameters”| Type | Description |
|---|---|
char *device | The Wayland device to conenct to. Defaults to “wayland-0”. |
Code Example
Section titled “Code Example”#include <finite/draw.h>
FiniteShell *myShell = finite_shell_init("wayland-0");
if (!myShell) { FINITE_LOG_FATAL("Unable to init shell");}Standard Usage
Section titled “Standard Usage”When creating a new application, you must call this function. Although libfinite support custom implementations of some function, all libfinite functions that interact with the window expect a FiniteShell.
In production, you should use “wayland-0” as the Wayland Device.