libosmocore 1.13.1.1-afb4 Osmocom core library

loggingrb.h
Go to the documentation of this file.
1/* (C) 2012-2013 by Katerina Barone-Adesi <kat.obsc@gmail.com>
2 * All Rights Reserved
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 */
15
16#pragma once
17
22 struct log_info;
23
24 size_t log_target_rb_used_size(struct log_target const *target);
25 size_t log_target_rb_avail_size(struct log_target const *target);
26 const char *log_target_rb_get(struct log_target const *target, size_t logindex);
27 struct log_target *log_target_create_rb(size_t size);
28
log_target_rb_avail_size
size_t log_target_rb_avail_size(struct log_target const *target)
Return the capacity of the osmo_strrb-backed target.
Definition: loggingrb.c:60
log_target_create_rb
struct log_target * log_target_create_rb(size_t size)
Create a new logging target for ringbuffer-backed logging.
Definition: loggingrb.c:81
log_target_rb_get
const char * log_target_rb_get(struct log_target const *target, size_t logindex)
Return the nth log entry in a target.
Definition: loggingrb.c:72
log_target_rb_used_size
size_t log_target_rb_used_size(struct log_target const *target)
Return the number of log strings in the osmo_strrb-backed target.
Definition: loggingrb.c:48
log_info
Logging configuration, passed to log_init.
Definition: logging.h:259
log_target
Definition: logging.h:304