libosmocore 0.9.6-23.20170220git32ee5af8.fc42
Osmocom core library
Loading...
Searching...
No Matches
loggingrb.h
Go to the documentation of this file.
1#pragma once
2
3/* (C) 2012-2013 by Katerina Barone-Adesi <kat.obsc@gmail.com>
4 * All Rights Reserved
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License along
17 * with this program; if not, write to the Free Software Foundation, Inc.,
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 *
20 */
21
22
30struct log_info;
31
32size_t log_target_rb_used_size(struct log_target const *target);
33size_t log_target_rb_avail_size(struct log_target const *target);
34const char *log_target_rb_get(struct log_target const *target, size_t logindex);
35struct log_target *log_target_create_rb(size_t size);
36
size_t log_target_rb_avail_size(struct log_target const *target)
Return the capacity of the osmo_strrb-backed target.
Definition loggingrb.c:55
struct log_target * log_target_create_rb(size_t size)
Create a new logging target for ringbuffer-backed logging.
Definition loggingrb.c:76
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:67
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:43
Logging configuration, passed to log_init.
Definition logging.h:148
structure representing a logging target
Definition logging.h:176