code wiki / _hdl_build / nx_food_menu.nx

nx_food_menu.nx

buildroot/runtime/_hdl_build/nx_food_menu.nx

9352 B172 linesdepth 8pulls 11 transitivereach 2 importersview sourcekind librarytopic food
docsdependenciesstructsconstsfunctions

about

nx_food_menu.nx -- LIB: per-RESTAURANT availability (the original ask -- "the best stir-fry from the ingredients/options at THEIR local restaurant"). Each restaurant is a record in the store (name, blurb, available-ingredient list); the chooser runs against ONLY that restaurant's menu, so different restaurants yield different recommendations. Also renders a sovereign no-JS directory page. Builds on nx_food_site (fs_render_avail). license_tier: ORIGINAL

dependencies 4 imports · 2 importers

nx_food_site.nx nx_food_science.nx nx_seg_store.nx nx_syscalls.nx nx_food_menu.nx nx_food_clean_source_gate.nx nx_food_menu_gate.nx

imports: nx_food_site.nxnx_food_science.nxnx_seg_store.nxnx_syscalls.nx

imported by: nx_food_clean_source_gate.nxnx_food_menu_gate.nx

structs

none

consts

10const K_MAGIC_1024: i64 = 1024

functions

14func fd_seed_restaurants(prefix: *u8) -> i64
44func fs_avail_from_idlist(world: *i64, listbuf: *u8, listlen: i64, avail: *i64) -> i64
70func fs_restaurant_avail(store_prefix: *u8, rest_id: *u8, avail: *i64, name_out: *u8) -> i64
91func fs_render_restaurant(store_prefix: *u8, catpath: *u8, rest_id: *u8, out: *u8) -> i64
104func fs_dir_card(store_prefix: *u8, rest_id: *u8, out: *u8, off: i64) -> i64
129func fs_render_directory(store_prefix: *u8, catpath: *u8, out: *u8) -> i64