code wiki / (root) / nx_print_validate.nx

nx_print_validate.nx

buildroot/runtime/nx_print_validate.nx

2750 B58 linesdepth 6pulls 9 transitivereach 0 importersview sourcekind tooltopic print
docsdependenciesstructsconstsfunctions

about

nx_print_validate.nx -- LIVE, SAFE proof of the submission path. Sends a Validate-Job for an image/urf document to the real Brother and reports whether it WOULD accept the job. Prints NOTHING -- no paper, no toner consumed (Validate-Job per RFC 8011 4.2.3). This is the safe acceptance test for the whole rasterize->submit pipeline before any physical Print-Job. READ-ONLY -> never-brick. license_tier: ORIGINAL

dependencies 4 imports · 0 importers

nx_syscalls.nx nx_ipp_codec.nx nx_ipp_transport.nx nx_ipp_submit.nx nx_print_validate.nx

imports: nx_syscalls.nxnx_ipp_codec.nxnx_ipp_transport.nxnx_ipp_submit.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 sys_mmap nx_ipt_verdict_name pn sys_write ↻ sys_mmap ↻ sys_exit nx_ipp_status nx_ipp_get_u16 phex16 sys_write ↻

structs

none

consts

10const K_MAGIC_2048: i64 = 2048
11const K_MAGIC_131072: i64 = 131072

functions

13func p(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 }
called by 1: main calls 1: sys_write
14func pn(v: i64) -> i64
called by 1: main calls 2: sys_writesys_mmap
23func phex16(v: i64) -> i64
called by 1: main calls 1: sys_write
29func main() -> i64