Suckless OGL 1.0.0
A lean, high-performance C11 PBR Renderer
Loading...
Searching...
No Matches
SubsystemDescriptor Struct Reference

Describes one subsystem's lifecycle hooks. More...

#include <app_subsystem.h>

Data Fields

const char * name
 
int(* init )(struct App *app)
 
void(* cleanup )(struct App *app)
 

Detailed Description

Describes one subsystem's lifecycle hooks.

Field Documentation

◆ cleanup

void(* SubsystemDescriptor::cleanup) (struct App *app)

NULL-safe, idempotent.

◆ init

int(* SubsystemDescriptor::init) (struct App *app)

Returns 1 on success, 0 on failure.

◆ name

const char* SubsystemDescriptor::name

Human-readable name (for logs).


The documentation for this struct was generated from the following file: