deltamesh-federated-privacy.../delta_mesh/EnergiBridge.c

13 lines
560 B
C

// Minimal EnergiBridge implementation: convert DeltaMesh primitives into a CatOpt-like structure.
#include "EnergiBridge.h"
void EnergiBridge_map_LocalMarket_to_CatOpt(const LocalMarket* lm, CatOpt_Object* out) {
if (!lm || !out) return;
// Direct field mapping for toy MVP; in a real bridge this would be richer and versioned
out->venue = lm->venue;
out->inventory = lm->inventory;
out->risk_budget = lm->risk_budget;
// Best-effort: initialize a simple static version; in a real system this would be a per-message counter
out->version = 1;
}