blob: 6d501466851e95e4ea462d848abe2715faa734d1 [file] [log] [blame]
Katerina Barone-Adesi3309a432013-02-21 05:16:29 +00001/* (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
Harald Welte33e940b2014-10-26 20:52:25 +01006 * the Free Software Foundation; either version 2 of the License, or
Katerina Barone-Adesi3309a432013-02-21 05:16:29 +00007 * (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 *
Katerina Barone-Adesi3309a432013-02-21 05:16:29 +000014 */
15
Neels Hofmeyr17518fe2017-06-20 04:35:06 +020016#pragma once
Katerina Barone-Adesi3309a432013-02-21 05:16:29 +000017
18/*! \defgroup loggingrb Osmocom ringbuffer-backed logging
19 * @{
Neels Hofmeyr17518fe2017-06-20 04:35:06 +020020 * \file loggingrb.h */
Katerina Barone-Adesi3309a432013-02-21 05:16:29 +000021
22struct log_info;
23
24size_t log_target_rb_used_size(struct log_target const *target);
25size_t log_target_rb_avail_size(struct log_target const *target);
26const char *log_target_rb_get(struct log_target const *target, size_t logindex);
27struct log_target *log_target_create_rb(size_t size);
28
29/*! @} */