Macro in ldk_eventqueue.h

LDK_EVENT_QUEUE_SIZE

#define LDK_EVENT_QUEUE_SIZE 255
Macro in ldk_eventqueue.h

LDK_EVENT_HANDLERS_MAX

#define LDK_EVENT_HANDLERS_MAX 32
Typedef in ldk_eventqueue.h

LDKEventHandler

Callback handling an engine event.

typedef bool(*LDKEventHandler)(const LDKEvent *event, void *optional);

Parameters

event
Event to inspect or receive.
optional
Optional used by this operation.

Returns

True if the operation succeeds; false otherwise.

Function in ldk_eventqueue.h

ldk_event_queue_initialize

Initialize the event queue.

LDK_API bool ldk_event_queue_initialize(LDKEventQueue *queue);

Parameters

LDKEventQueue *queue
Queue used by this operation.

Returns

True if the operation succeeds; false otherwise.