![]() |
BALTECH Docs |
BALTECH SDK wrapper functions reference
|
| 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"
| protocol | A protocol stack containing a monitor protocol layer. |
| anchor | Output parameter for the allocated anchor string (e.g., "_a3"). Set to NULL if no log entries have been written yet. |
| mempool | Optional mempool for memory allocation. If NULL, uses the protocol's mempool. |