code wiki / (root) / nx_printer_query.nx

nx_printer_query.nx

buildroot/runtime/nx_printer_query.nx

9990 B222 linesdepth 6pulls 12 transitivereach 0 importersview sourcekind tooltopic printer
docsdependenciesstructsconstsfunctions

about

nx_printer_query.nx -- LIVE driver: query a real IPP printer and print the honest truth. Composes R0 codec + R1 health + R2 transport against the operator's Brother at 192.168.8.127:631. READ-ONLY (Get-Printer-Attributes) -> never-brick. license_tier: ORIGINAL

dependencies 7 imports · 0 importers

nx_syscalls.nx nx_ipp_codec.nx nx_printer_health.nx nx_ipp_transport.nx nx_printer_security.nx nx_printer_waste.nx nx_printer_conform.nx nx_printer_query.nx

imports: nx_syscalls.nxnx_ipp_codec.nxnx_printer_health.nxnx_ipp_transport.nxnx_printer_security.nxnx_printer_waste.nxnx_printer_conform.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main p sys_write

structs

none

consts

12const K_MAGIC_131072: i64 = 131072

functions

14func p(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 }
15func pn(v: i64) -> i64
25func phex16(v: i64) -> i64
calls 1: sys_write
32func state_label(s: i64) -> *u8
38func sev_label(s: i64) -> *u8
called by 1: print_reasons
45func verdict_label(v: i64) -> *u8
51func psec_label(v: i64) -> *u8
57func yn(flags: i64, bit: i64) -> i64
calls 1: p
61func sup_label(v: i64) -> *u8
67func dup_label(v: i64) -> *u8
75func print_attr_str(body: *u8, n: i64, name: *u8) -> i64
87func print_reasons(body: *u8, n: i64, pstate: i64) -> i64
131func main() -> i64
calls 1: p