spandsp 0.0.6
private/logging.h
1/*
2 * SpanDSP - a series of DSP components for telephony
3 *
4 * private/logging.h - definitions for error and debug logging.
5 *
6 * Written by Steve Underwood <steveu@coppice.org>
7 *
8 * Copyright (C) 2005 Steve Underwood
9 *
10 * All rights reserved.
11 *
12 * This program is free software; you can redistribute it and/or modify
13 * it under the terms of the GNU Lesser General Public License version 2.1,
14 * as published by the Free Software Foundation.
15 *
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU Lesser General Public License for more details.
20 *
21 * You should have received a copy of the GNU Lesser General Public
22 * License along with this program; if not, write to the Free Software
23 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
24 */
25
26#if !defined(_SPANDSP_PRIVATE_LOGGING_H_)
27#define _SPANDSP_PRIVATE_LOGGING_H_
28
29/*!
30 Logging descriptor. This defines the working state for a single instance of
31 the logging facility for spandsp.
32*/
34{
35 int level;
36 int samples_per_second;
37 int64_t elapsed_samples;
38 const char *tag;
39 const char *protocol;
40
41 message_handler_func_t span_message;
42 error_handler_func_t span_error;
43};
44
45#endif
46/*- End of file ------------------------------------------------------------*/
void(* message_handler_func_t)(int level, const char *text)
Definition: logging.h:37
void(* error_handler_func_t)(const char *text)
Definition: logging.h:40
Definition: private/logging.h:34