"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/osipparser2/osip_port.c" between
libosip2-5.1.0.tar.gz and libosip2-5.1.1.tar.gz

About: The GNU oSIP library is an implementation of SIP (RFC3261).

osip_port.c  (libosip2-5.1.0):osip_port.c  (libosip2-5.1.1)
/* /*
The oSIP library implements the Session Initiation Protocol (SIP -rfc3261-) The oSIP library implements the Session Initiation Protocol (SIP -rfc3261-)
Copyright (C) 2001-2015 Aymeric MOIZARD amoizard@antisip.com Copyright (C) 2001-2020 Aymeric MOIZARD amoizard@antisip.com
This library is free software; you can redistribute it and/or This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version. version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful, This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details. Lesser General Public License for more details.
skipping to change at line 856 skipping to change at line 856
tracing_table[i] = LOG_TRUE; tracing_table[i] = LOG_TRUE;
else else
tracing_table[i] = LOG_FALSE; tracing_table[i] = LOG_FALSE;
i++; i++;
} }
} }
void void
osip_trace_enable_until_level (osip_trace_level_t level) osip_trace_enable_until_level (osip_trace_level_t level)
{ {
int i = 0; osip_trace_level_t i = 0;
while (i < END_TRACE_LEVEL) { while (i < END_TRACE_LEVEL) {
if (i < level) if (i < level)
tracing_table[i] = LOG_TRUE; tracing_table[i] = LOG_TRUE;
else else
tracing_table[i] = LOG_FALSE; tracing_table[i] = LOG_FALSE;
i++; i++;
} }
} }
void void
osip_trace_initialize_func (osip_trace_level_t level, osip_trace_func_t * func) osip_trace_initialize_func (osip_trace_level_t level, osip_trace_func_t * func)
{ {
int i = 0; osip_trace_level_t i = 0;
trace_func = func; trace_func = func;
/* enable all lower levels */ /* enable all lower levels */
while (i < END_TRACE_LEVEL) { while (i < END_TRACE_LEVEL) {
if (i < level) if (i < level)
tracing_table[i] = LOG_TRUE; tracing_table[i] = LOG_TRUE;
else else
tracing_table[i] = LOG_FALSE; tracing_table[i] = LOG_FALSE;
i++; i++;
 End of changes. 3 change blocks. 
3 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)