libosmocore 0.9.6-23.20170220git32ee5af8.fc42
Osmocom core library
|
Files | |
file | loggingrb.h |
Functions | |
size_t | log_target_rb_used_size (struct log_target const *target) |
Return the number of log strings in the osmo_strrb-backed target. | |
size_t | log_target_rb_avail_size (struct log_target const *target) |
Return the capacity of the osmo_strrb-backed target. | |
const char * | log_target_rb_get (struct log_target const *target, size_t logindex) |
Return the nth log entry in a target. | |
struct log_target * | log_target_create_rb (size_t size) |
Create a new logging target for ringbuffer-backed logging. | |
struct log_target * log_target_create_rb | ( | size_t | size | ) |
Create a new logging target for ringbuffer-backed logging.
[in] | size | The capacity (number of messages) of the logging target. |
References log_target_create(), log_target_destroy(), LOG_TGT_TYPE_STRRB, osmo_strrb_create(), log_target::output, osmo_strrb::size, and log_target::type.
size_t log_target_rb_avail_size | ( | struct log_target const * | target | ) |
Return the capacity of the osmo_strrb-backed target.
[in] | target | The target to search. |
Note that this is the capacity (aka max number of messages). It is not the number of unused message slots.
References osmo_strrb::size.
const char * log_target_rb_get | ( | struct log_target const * | target, |
size_t | logindex ) |
Return the nth log entry in a target.
[in] | target | The target to search. |
[in] | logindex | The index of the log entry/error message. |
References osmo_strrb_get_nth().
size_t log_target_rb_used_size | ( | struct log_target const * | target | ) |
Return the number of log strings in the osmo_strrb-backed target.
[in] | target | The target to search. |
References osmo_strrb_elements().