blob: dcd7917c02a80e1e7d0360f762fb4deddb0fda23 [file] [log] [blame]
Sylvain Munaut12ba7782014-06-16 10:13:40 +02001#pragma once
Katerina Barone-Adesi3309a432013-02-21 05:16:29 +00002
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
Harald Welte33e940b2014-10-26 20:52:25 +01008 * the Free Software Foundation; either version 2 of the License, or
Katerina Barone-Adesi3309a432013-02-21 05:16:29 +00009 * (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
23/*! \defgroup loggingrb Osmocom ringbuffer-backed logging
24 * @{
25 */
26
27/*! \file loggingrb.h
28 */
29
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
37/*! @} */