code wiki / _hdl_build / nx_roku_catalog_emit.nx

nx_roku_catalog_emit.nx

buildroot/runtime/_hdl_build/nx_roku_catalog_emit.nx

3069 B43 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind tooltopic roku
docsdependenciesstructsconstsfunctions

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

nx_syscalls.nx nx_roku_catalog_emit.nx

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

main sys_mmap rk_cat emit_item rk_cat ↻ sys_openat_wr rk_puts sys_write sys_exit sys_write ↻ sys_close rk_num sys_mmap ↻ sys_write ↻

structs

none

consts

8const K_MAGIC_16384: i64 = 16384

functions

10func 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 }
called by 1: main calls 1: sys_write
11func 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 }
called by 1: main calls 2: sys_mmapsys_write
12func rk_strlen(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n }
13func 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 }
called by 2: emit_itemmain
16func emit_item(buf: *u8, off: i64, id: *u8, title: *u8, poster: *u8, last: i64) -> i64
called by 1: main calls 1: rk_cat
27func main(argc: i64, argv: *i64) -> i64