mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-14 01:49:05 +00:00
update to snapshot spandsp-20090211
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12186 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
* License along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*
|
||||
* $Id: logging.c,v 1.30 2009/02/03 16:28:39 steveu Exp $
|
||||
* $Id: logging.c,v 1.31 2009/02/10 13:06:46 steveu Exp $
|
||||
*/
|
||||
|
||||
/*! \file */
|
||||
@@ -177,20 +177,6 @@ SPAN_DECLARE(int) span_log_buf(logging_state_t *s, int level, const char *tag, c
|
||||
}
|
||||
/*- End of function --------------------------------------------------------*/
|
||||
|
||||
SPAN_DECLARE(int) span_log_init(logging_state_t *s, int level, const char *tag)
|
||||
{
|
||||
s->span_error = __span_error;
|
||||
s->span_message = __span_message;
|
||||
s->level = level;
|
||||
s->tag = tag;
|
||||
s->protocol = NULL;
|
||||
s->samples_per_second = SAMPLE_RATE;
|
||||
s->elapsed_samples = 0;
|
||||
|
||||
return 0;
|
||||
}
|
||||
/*- End of function --------------------------------------------------------*/
|
||||
|
||||
SPAN_DECLARE(int) span_log_set_level(logging_state_t *s, int level)
|
||||
{
|
||||
s->level = level;
|
||||
@@ -254,4 +240,37 @@ SPAN_DECLARE(void) span_set_error_handler(error_handler_func_t func)
|
||||
__span_error = func;
|
||||
}
|
||||
/*- End of function --------------------------------------------------------*/
|
||||
|
||||
SPAN_DECLARE(int) span_log_init(logging_state_t *s, int level, const char *tag)
|
||||
{
|
||||
if (s == NULL)
|
||||
{
|
||||
if ((s = (logging_state_t *) malloc(sizeof(*s))) == NULL)
|
||||
return NULL;
|
||||
}
|
||||
s->span_error = __span_error;
|
||||
s->span_message = __span_message;
|
||||
s->level = level;
|
||||
s->tag = tag;
|
||||
s->protocol = NULL;
|
||||
s->samples_per_second = SAMPLE_RATE;
|
||||
s->elapsed_samples = 0;
|
||||
|
||||
return 0;
|
||||
}
|
||||
/*- End of function --------------------------------------------------------*/
|
||||
|
||||
SPAN_DECLARE(int) span_log_release(logging_state_t *s)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
/*- End of function --------------------------------------------------------*/
|
||||
|
||||
SPAN_DECLARE(int) span_log_free(logging_state_t *s)
|
||||
{
|
||||
if (s)
|
||||
free(s);
|
||||
return 0;
|
||||
}
|
||||
/*- End of function --------------------------------------------------------*/
|
||||
/*- End of file ------------------------------------------------------------*/
|
||||
|
Reference in New Issue
Block a user