45#define UDPTH_PIPE_CAPACITY 8u
48#define UDPTH_MSG_MID ((JUNO_SB_MID_T)1u)
85#define UdpThreadMsg_PointerInit(addr) \
86 JunoMemory_PointerInit(&g_udpThreadMsgPointerApi, UDP_THREAD_MSG_T, (addr))
Abstract fixed-capacity array interface for DS modules.
struct JUNO_DS_ARRAY_ROOT_TAG JUNO_DS_ARRAY_ROOT_T
Opaque array root carrying capacity and API pointer.
Definition array_api.h:58
Software Bus (SB) broker for single-threaded message fan-out.
static JUNO_STATUS_T JunoDs_ArrayInit(JUNO_DS_ARRAY_ROOT_T *ptArray, const JUNO_DS_ARRAY_API_T *ptArrayApi, size_t iCapacity, JUNO_FAILURE_HANDLER_T pfcnFailureHdlr, JUNO_USER_DATA_T *pvUserData)
Initialize an array root with capacity and API.
Definition array_api.h:164
#define JUNO_MODULE_DERIVE(ROOT_T,...)
Implement a derived module embedding the root as the first member.
Definition module.h:161
void(* JUNO_FAILURE_HANDLER_T)(JUNO_STATUS_T tStatus, const char *pcCustomMessage, JUNO_USER_DATA_T *pvUserData)
Failure handler callback signature.
Definition status.h:110
int32_t JUNO_STATUS_T
Canonical status type for LibJuno functions.
Definition status.h:51
void JUNO_USER_DATA_T
Opaque user data type for failure callbacks.
Definition status.h:101
Pointer trait and helpers for memory operations.
Array API vtable.
Definition array_api.h:75
Pointer operations API (copy/reset).
Definition pointer_api.h:75
Fixed-size UDP datagram message transferred between sender and receiver.
Definition udp_api.h:101
Freestanding C11 interface for the UDP socket module (udp-threads example).
struct UDPTH_MSG_ARRAY_TAG UDPTH_MSG_ARRAY_T
Definition udp_msg_api.h:64
static JUNO_STATUS_T UdpThreadMsgArray_Init(UDPTH_MSG_ARRAY_T *ptArr, JUNO_FAILURE_HANDLER_T pfcnHandler, JUNO_USER_DATA_T *pvUserData)
Initialise a UDPTH_MSG_ARRAY_T with the shared array API.
Definition udp_msg_api.h:96
const JUNO_POINTER_API_T g_udpThreadMsgPointerApi
Pointer API for UDP_THREAD_MSG_T — used with JunoMemory_PointerInit.
Definition udp_thread_msg.cpp:86
const JUNO_DS_ARRAY_API_T g_udpThreadMsgArrayApi
Array API for UDPTH_MSG_ARRAY_T — used with JunoDs_ArrayInit.
Definition udp_thread_msg.cpp:135
#define UDPTH_PIPE_CAPACITY
Definition udp_msg_api.h:45