// Linkable bodies for the handful of luna-service2 client-call functions // foreground_app.c calls. service.c/main.c only ever get -fsyntax-only'd, so // declarations alone are enough for them; foreground_app.c is linked into // real host test binaries (engine_smoke, rtp_send) via SOURCES[] in // run-tests.sh, so those symbols need bodies too, or the link fails. // // A host has no Luna bus, so "the call failed" is exactly the right // simulated behaviour -- every caller here already treats that as // "foreground app tracking unavailable" and degrades accordingly, which is // also genuinely exercised by the test suite (see the fail-closed check in // engine_smoke.c). #include "luna-service2/lunaservice.h" #include void LSErrorInit(LSError* error) { memset(error, 0, sizeof(*error)); } void LSErrorFree(LSError* error) { (void)error; } bool LSCall(LSHandle* sh, const char* uri, const char* payload, LSFilterFunc callback, void* ctx, LSMessageToken* ret_token, LSError* error) { (void)sh; (void)uri; (void)payload; (void)callback; (void)ctx; (void)ret_token; if (error) error->message = (char*)"no Luna bus on this host"; return false; } bool LSCallOneReply(LSHandle* sh, const char* uri, const char* payload, LSFilterFunc callback, void* ctx, LSMessageToken* ret_token, LSError* error) { return LSCall(sh, uri, payload, callback, ctx, ret_token, error); } bool LSCallCancel(LSHandle* sh, LSMessageToken token, LSError* error) { (void)sh; (void)token; (void)error; return true; } const char* LSMessageGetPayload(LSMessage* message) { (void)message; return NULL; }