00001 /* 00002 * SpanDSP - a series of DSP components for telephony 00003 * 00004 * private/logging.h - definitions for error and debug logging. 00005 * 00006 * Written by Steve Underwood <steveu@coppice.org> 00007 * 00008 * Copyright (C) 2005 Steve Underwood 00009 * 00010 * All rights reserved. 00011 * 00012 * This program is free software; you can redistribute it and/or modify 00013 * it under the terms of the GNU Lesser General Public License version 2.1, 00014 * as published by the Free Software Foundation. 00015 * 00016 * This program is distributed in the hope that it will be useful, 00017 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00018 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00019 * GNU Lesser General Public License for more details. 00020 * 00021 * You should have received a copy of the GNU Lesser General Public 00022 * License along with this program; if not, write to the Free Software 00023 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00024 * 00025 * $Id: logging.h,v 1.1 2008/11/30 13:44:35 steveu Exp $ 00026 */ 00027 00028 #if !defined(_SPANDSP_PRIVATE_LOGGING_H_) 00029 #define _SPANDSP_PRIVATE_LOGGING_H_ 00030 00031 /*! 00032 Logging descriptor. This defines the working state for a single instance of 00033 the logging facility for spandsp. 00034 */ 00035 struct logging_state_s 00036 { 00037 int level; 00038 int samples_per_second; 00039 int64_t elapsed_samples; 00040 const char *tag; 00041 const char *protocol; 00042 00043 message_handler_func_t span_message; 00044 error_handler_func_t span_error; 00045 }; 00046 00047 #endif 00048 /*- End of file ------------------------------------------------------------*/