nx_printer_conform.nx
buildroot/runtime/nx_printer_conform.nx
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
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
| 16 | const NX_CONF_GAP_IPP_OLD: i64 = 1 // ipp-versions-supported lacks "2.0" |
| 17 | const NX_CONF_GAP_NO_PDF: i64 = 2 // document-format-supported lacks application/pdf |
| 18 | const NX_CONF_GAP_DUPLEX_WASTE: i64 = 4 // sides-supported has two-sided but sides-default = one-sided |
| 19 | const NX_CONF_GAP_NO_COLOR: i64 = 8 // color-supported = false (monochrome) |
functions
| 22 | func nx_conf_default_one_sided(buf: *u8, n: i64, scratch3: *i64) -> i64 |
| 33 | func nx_conf_color(buf: *u8, n: i64, scratch3: *i64) -> i64 |
| 46 | func nx_conf_gaps(buf: *u8, n: i64, scratch3: *i64) -> i64 |
| 62 | func nx_conf_gap_count(gaps: i64) -> i64 |