BALTECH SDK wrapper functions reference

§ brp_get_current_log_anchor()

BRP_LIB brp_errcode brp_get_current_log_anchor ( brp_protocol  protocol,
char **  anchor,
brp_mempool mempool 
)

Returns the anchor ID of the current (last written) log entry.

The anchor can be used to create direct links to specific log entries, e.g., "file:///path/to/log.html#_a3"

Parameters
protocolA protocol stack containing a monitor protocol layer.
anchorOutput parameter for the allocated anchor string (e.g., "_a3"). Set to NULL if no log entries have been written yet.
mempoolOptional mempool for memory allocation. If NULL, uses the protocol's mempool.
Returns
BRP_OK on success, or an error code on failure.