code wiki / (root) / nx_printers_render.nx

nx_printers_render.nx

buildroot/runtime/nx_printers_render.nx

9704 B201 linesdepth 2pulls 4 transitivereach 2 importersview sourcekind library
docsdependenciesstructsconstsfunctions

about

nx_printers_render.nx -- render the full honest printer audit as an HTML page (the standing UI law: every capability gets a live UI). PURE emitter: takes a parsed IPP Get-Printer-Attributes response and composes the status (nx_printer_health) + security (nx_printer_security) + waste (nx_printer_waste) verdicts into a styled, self-contained HTML page. No syscalls -> never-brick. Read-only status = safe to publish (controls/sensitive actions stay operator-only per the UI law). genealogy_id: project-printer-management-ipp-sclass-2026-06-20 ; license_tier: ORIGINAL

dependencies 4 imports · 2 importers

nx_ipp_codec.nx nx_printer_health.nx nx_printer_security.nx nx_printer_waste.nx nx_printers_render.nx nx_printers_page.nx nx_printers_render_test.nx

imports: nx_ipp_codec.nxnx_printer_health.nxnx_printer_security.nxnx_printer_waste.nx

imported by: nx_printers_page.nxnx_printers_render_test.nx

structs

none

consts

none

functions

13func nx_pr_h(out: *u8, off: i64, s: *u8) -> i64
19func nx_pr_hi(out: *u8, off: i64, v: i64) -> i64
called by 1: nx_printers_render
32func nx_pr_attr(out: *u8, off: i64, body: *u8, n: i64, name: *u8, sc3: *i64) -> i64
43func nx_pr_canprint(v: i64) -> *u8
called by 1: nx_printers_render
49func nx_pr_canclass(v: i64) -> *u8
called by 1: nx_printers_render
54func nx_pr_secname(v: i64) -> *u8
called by 1: nx_printers_render
60func nx_pr_sevname(s: i64) -> *u8
called by 1: nx_pr_reasons
68func nx_pr_reasons(out: *u8, off: i64, body: *u8, n: i64, pstate: i64) -> i64
119func nx_printers_render(out: *u8, body: *u8, n: i64, scratch: *i64, toner_bp: i64, toner_pages: i64) -> i64