Typedef in ldk_entity.h

LDKEntityIterFn

Callback visiting an entity during iteration.

typedef bool(*LDKEntityIterFn)(LDKEntity entity, LDKEntityInfo *info, void *user);

Parameters

entity
Entity to inspect or modify.
info
Info used by this operation.
user
Opaque caller-supplied data passed to the callback.

Returns

True if the operation succeeds; false otherwise.

Function in ldk_entity.h

ldk_entity_iterator_next

Advance an entity iterator to the next entity.

LDK_API bool ldk_entity_iterator_next(
 LDKEntityIterator *iterator,
 LDKEntity *out_entity
);

Parameters

LDKEntityIterator *iterator
Iterator used by this operation.
LDKEntity *out_entity
Receives the resulting entity.

Returns

True if the operation succeeds; false otherwise.