code wiki / _hdl_build / nx_food_menu.nx
nx_food_menu.nx
buildroot/runtime/_hdl_build/nx_food_menu.nx
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
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
| 10 | const K_MAGIC_1024: i64 = 1024 |
functions
| 14 | func fd_seed_restaurants(prefix: *u8) -> i64 |
| 44 | func fs_avail_from_idlist(world: *i64, listbuf: *u8, listlen: i64, avail: *i64) -> i64 |
| 70 | func fs_restaurant_avail(store_prefix: *u8, rest_id: *u8, avail: *i64, name_out: *u8) -> i64 |
| 91 | func fs_render_restaurant(store_prefix: *u8, catpath: *u8, rest_id: *u8, out: *u8) -> i64 called by 3: mainmg_ship_restaurantmain calls 5: sys_mmapfs_restaurant_availfd_world_openfd_set_allfs_render_avail |
| 104 | func fs_dir_card(store_prefix: *u8, rest_id: *u8, out: *u8, off: i64) -> i64 |
| 129 | func fs_render_directory(store_prefix: *u8, catpath: *u8, out: *u8) -> i64 |