Project homepage Mailing List  Warmcat.com  API Docs  Github Mirror 
    npro  
 Modern all-safe Rust Network Protocol library supporting h1, h2, h3, ws, wt sans-IO and with socket IO + tls
git clone https://npro.rs/repo/npro
 
root / scripts / etc-rc.d-sai_builder-OpenBSD
Author[]Andy Green <andy@warmcat.com> 2025-09-05 08:52 UTC
Committer[]Andy Green <andy@warmcat.com> 2025-09-05 09:31 UTC
Tree5366203406f30dd8e1ebec86b8cafde233b55a7e   Raw Patch
 
feat: Embed git helpers and add rebuild options
feat: Embed git helpers and add rebuild options

Co-developed-by: Gemini 2.5 Pro
diff --git a/src/builder/b-comms.c b/src/builder/b-comms.c index 907d9e5..10c04f5 100644 --- a/src/builder/b-comms.c +++ b/src/builder/b-comms.c @@ -216,6 +216,15 @@ saib_m_tx(void *userobj, lws_ss_tx_ordinal_t ord, uint8_t *buf, size_t *len, * Update server with platform status */ + lws_start_foreach_dll(struct lws_dll2 *, d, + builder.sai_plat_owner.head) { + sai_plat_t *p = lws_container_of(d, sai_plat_t, sai_plat_list); + + lwsl_notice("%s: &&&&&&&&&&&&&&&&&&&& platform %s, windows %d\n", __func__, + p->name, p->windows); + + } lws_end_foreach_dll(d); + js = lws_struct_json_serialize_create(lsm_schema_map_plat, LWS_ARRAY_SIZE(lsm_schema_map_plat), 0, &builder.sai_plat_owner); diff --git a/src/builder/b-conf.c b/src/builder/b-conf.c index a35e256..70025f0 100644 --- a/src/builder/b-conf.c +++ b/src/builder/b-conf.c @@ -155,6 +155,9 @@ saib_conf_cb(struct lejp_ctx *ctx, char reason) memcpy((char *)a->sai_plat->name, temp, (unsigned int)n + 1); lwsl_notice("%s: platform: %.*s, name %s\n", __func__, ctx->npos, ctx->buf, a->sai_plat->name); +#if defined(WIN32) + a->sai_plat->windows = 1; +#endif pp = &a->sai_plat->platform; a->sai_plat->index = a->next_plat_index++; break; diff --git a/src/server/s-ws-builder.c b/src/server/s-ws-builder.c index 9b1b7d0..47779e6 100644 --- a/src/server/s-ws-builder.c +++ b/src/server/s-ws-builder.c @@ -532,6 +532,8 @@ handle: * builder is sending us an array of platforms it provides us */ + lwsl_notice("%s: &&&&&&&&&&&&&&&&&&&&&\n", __func__); lwsl_hexdump_notice(buf, bl); + pss->u.o = (sai_plat_owner_t *)pss->a.dest; lws_start_foreach_dll(struct lws_dll2 *, pb, @@ -539,6 +541,9 @@ handle: build = lws_container_of(pb, sai_plat_t, sai_plat_list); sai_plat_t *live_cb; + lwsl_notice("%s: ***************** platform %s, windows %d\n", __func__, + build->name, build->windows); + /* * Step 1: Upsert this platform into the persistent database. */
Page fetched 0s ago, creation time: 3ms (vhost etag hits: 0%, cache hits: 0%)