Files
logos-messaging-module/tests/stubs/lib/liblogosdelivery_kernel.h

39 lines
1.1 KiB
C

// Stub header for liblogosdelivery_kernel - mirrors the subset of the
// generated waku_* surface from logos-delivery (master 69fbffa3) that
// delivery_module_plugin.cpp actually consumes, so unit tests compile without
// the real library. Keep in sync with the real header when bumping the
// logos-delivery flake input.
//
// The real kernel header declares the full unstable waku_* surface; only the
// functions used by the module are stubbed here on purpose, so an accidental
// new kernel dependency fails loudly at compile time.
#pragma once
#ifndef __liblogosdelivery_kernel__
#define __liblogosdelivery_kernel__
// Shared reply typedefs and RET_* return codes live in the stable header.
#include "liblogosdelivery.h"
typedef struct {
const char* jsonQuery;
const char* peerAddr;
int32_t timeoutMs;
} WakuStoreQueryReq;
#ifdef __cplusplus
extern "C"
{
#endif
int waku_store_query(void *ctx,
LogosDeliveryReplyFn on_reply,
void *user_data,
const WakuStoreQueryReq *req);
#ifdef __cplusplus
}
#endif
#endif /* __liblogosdelivery_kernel__ */