code wiki / (root) / nx_printer_conform.nx

nx_printer_conform.nx

buildroot/runtime/nx_printer_conform.nx

3958 B70 linesdepth 1pulls 1 transitivereach 6 importersview sourcekind librarytopic printer
docsdependenciesstructsconstsfunctions

about

nx_printer_conform.nx -- IPP conformance / capability-gap profiler. Surfaces the ACTIONABLE conformance gaps a vendor UI hides: what the printer advertises vs what it actually does. From a Get-Printer-Attributes response it flags four real, actionable gaps: - only-old-IPP (ipp-versions-supported lacks "2.0" -> missing IPP Everywhere features) - no-PDF (document-format-supported lacks application/pdf -> the client MUST rasterize) - duplex-default-waste (sides-supported has two-sided BUT sides-default = one-sided -> silent paper waste) - monochrome (color-supported = false) PURE model (caller-provided scratch, no syscalls) -> never-brick #26 by construction. no_silent_failure: a structurally malformed message yields UNKNOWN (-1), never a confident gap list. Sovereign: imports only nx_ipp_codec. genealogy_id: project-printer-management-ipp-sclass-2026-06-20 license_tier: ORIGINAL

dependencies 1 imports · 4 importers

nx_ipp_codec.nx nx_printer_conform.nx nx_printer_conform_live.nx nx_printer_conform_test.nx nx_printer_exceed.nx nx_printer_query.nx

imports: nx_ipp_codec.nx

imported by: nx_printer_conform_live.nxnx_printer_conform_test.nxnx_printer_exceed.nxnx_printer_query.nx

structs

none

consts

16const NX_CONF_GAP_IPP_OLD: i64 = 1 // ipp-versions-supported lacks "2.0"
17const NX_CONF_GAP_NO_PDF: i64 = 2 // document-format-supported lacks application/pdf
18const NX_CONF_GAP_DUPLEX_WASTE: i64 = 4 // sides-supported has two-sided but sides-default = one-sided
19const NX_CONF_GAP_NO_COLOR: i64 = 8 // color-supported = false (monochrome)

functions

22func nx_conf_default_one_sided(buf: *u8, n: i64, scratch3: *i64) -> i64
33func nx_conf_color(buf: *u8, n: i64, scratch3: *i64) -> i64
called by 1: nx_conf_gaps calls 1: nx_ipp_find
46func nx_conf_gaps(buf: *u8, n: i64, scratch3: *i64) -> i64
62func nx_conf_gap_count(gaps: i64) -> i64