code wiki / _hdl_build / nx_roku_catalog_emit.nx
nx_roku_catalog_emit.nx
buildroot/runtime/_hdl_build/nx_roku_catalog_emit.nx
about
nx_roku_catalog_emit.nx -- SOVEREIGN Roku media-catalog FEED emitter (R1b). Emits catalog.json -- the media
data backbone the Roku channel fetches at runtime (the Jellyfin/Plex model: thin client, server holds the
catalog). Each item = {id,title,kind,poster}. This is the generated-media NAMESPACE feed (kept separate from
any personal archive by construction). The feed is published to the server (nx_aw_push) as a GATED, outward-
facing step -- NOT done here. Emitted by an organ, never hand-written. license_tier: ORIGINAL
nx_roku_catalog_emit [out.json] (default /mnt/c/Users/elder/nishi_roku_catalog.json)
dependencies 1 imports · 0 importers
imports: nx_syscalls.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 8 | const K_MAGIC_16384: i64 = 16384 |
functions
| 10 | func rk_puts(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } |
| 11 | func rk_num(v: i64) -> i64 { let bb: *u8=sys_mmap(28); var m: i64=v; var k: i64=0; if m==0{bb[0]=48 as u8;sys_write(1,bb,1);return 0}; let t: *u8=sys_mmap(28); while m>0{t[k]=(48+(m%10)) as u8;m=m/10;k=k+1}; var i: i64=0; while i<k{bb[i]=t[k-1-i];i=i+1}; sys_write(1,bb,k); return 0 } |
| 12 | func rk_strlen(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n } |
| 13 | func rk_cat(dst: *u8, off: i64, s: *u8) -> i64 { var i: i64=0; while s[i]!=(0 as u8){ dst[off+i]=s[i]; i=i+1 } return off+i } |
| 16 | func emit_item(buf: *u8, off: i64, id: *u8, title: *u8, poster: *u8, last: i64) -> i64 |
| 27 | func main(argc: i64, argv: *i64) -> i64 |